------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\mbeissin\Desktop\Stata files for book\Logfiles\chapter9.log
  log type:  text
 opened on:  25 Jan 2022, 22:56:31

. * ============================================================================
. * STATISTICAL RESULTS APPEARING IN CHAPTER 9
. * STATA Do file for Chapter 9  
. * Results reported in Chapter 9  
. * Author: Mark R. Beissinger  
. * Date:  January 2022 
. * Princeton, NJ 
. * =============================================================================
. * WARNING: THIS DO FILE CAN TAKE SOME TIME TO COMPLETE EXECUTION
. * =============================================================================
. * BEFORE RUNNING, YOU MUST SET THE DEFAULT PATH FOR WHERE THE DATA
. *   FILES RESIDE
. * =============================================================================
. * For this do-file to execute properly, you must first install the following 
. *       Stata package:
. *               mimrgns from http://fmwww.bc.edu/RePEc/bocode/m
. * =============================================================================
. * The following datafiles are used for this chapter:
. *   revolutionaryeps.dta--Cross-sectional dataset of revolutionary episodes
. *   matcheddiffindifflong.dta--Panel dataset of successful revolutions and 
. *               matched cases for pre-revolutionary and post-revolutionary periods
. *   simplediffindifflong.dta--Panel dataset of successful and failed urban 
. *               civic and social revolutionary episodes for pre-revolutionary 
. *               and post-revolutionary periods
. *   fullsamplediffindifflong.dta--Panel dataset of all revolutionary episodes
. *               for pre-revolutonary and post-revolutionary periods
. * =============================================================================
. * See Appendix 4H of The Revolutionary City for details on how the matched
. *    samples were created
. * ============================================================================
. * Output produced:  Logfiles\chapter9.log
. *                                       Outputfiles\figure9_2.pdf
. *                                       Outputfiles\figure9_2.pdf
. *       --All output from this chapter has been combined into a single file and can 
. *               be found in a pdf file (chapter9.pdf) under the "Outputfiles" folder
. * =============================================================================
. *
. * ***************************************************************************
. * PLEASE READ--IMPORTANT EXPLANATION OF WHAT FOLLOWS
. * ***************************************************************************
. *
. * In Chapter 9 of The Revolutionary City, the diff-and-diff analyses were
. * not used as a way of estimating treatment effects. The reasons for this
. * are detailed in Appendix 4G (pp. 488-492), which provides a discussion of
. * the ways in which revolutions violate the various assumptions of the 
. * diff-in-diff model necessary for estimating treatment effects. Instead, 
. * the diff-and-diff setup in Chapter 9 was used for purposes of controlled
. * comparison--for describing the evolution of the particular variables examined, 
. * to identify trends before and after revolution, and to compare these
. * between different types of revolutions, between succcessful and failed 
. * revolutionary episodes, and between countries experiencing revolutionary 
. * contention and matched counterparts that did not. 
. *
. * Indeed, many of the comparisons presented in Chapter 9 do not involve "treatment" 
. * at all, but rather compare patterns of development after different types of 
. * revolutions, or patterns of development in societies experiencing successful
. * revolutions with those that experienced failed ones.  There was no "treatment" 
. * effect that could be estimated in these cases, and the purpose instead was to
. * describe the different trajectories of the variables of interest under these 
. * constrasting conditions. The closest this chapter comes to potentially 
. * identifying a treatment effect for revolution was in its matched case 
. * comparisons that compared societies experiencing revolutionary contention with 
. * societies that were similar in many respects but did not experience revolutionary 
. * contention over the period. There are considerable issues involved
. * in such comparisons, though they are about the best that can be done to estimate
. * the counterfactual of what might have happened had revolution never occurred.
. * However, I did not estimate a "treatment" effect in these cases, preferring
. * instead to use the setup to compare rather than identify causaion. The 
. * quasi-"treatment" variable (revny) used in these specifications actually included  
. * both treatment and pre-treatment years rather than differentiating between 
. * "treatment" and pre-"treatment" years, as a normal diff-in-diff setup would do.
. * The year prior to revolutionary onset was used as the base for the comparison. 
. * The setup also included a unit-time control. 
. *
. * In the robustness tests for this chapter, I explore the extent to which a  
. * "treatment"  effect (ATET) can be estimated for all of the matched comparisons  
. * conducted in the chapter, as well as the extent to which some of the key statistical   
. * assumptions for estimating a treatment effect for revolution hold (Please note 
. * that, as detailed in The Revolutionary City, there are other statistical
. * assumptions necessary for identifying treatment effects that are not tested
. * here and that may not hold true for many of the revolutionary episodes in the
. * sample).
. *
. * ***************************************************************************
. 
. 
. * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. * INITIAL SET UP OF PROGRAMS USED FOR MULTIPLE IMPUTATION
. *       Programs are called in analyses below
. * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. 
. * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. * Simple comparisons of social vs. urban civic--chp9simpmultimp
. * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. 
. quietly{

. 
. 
. * ++++++++++++++++++++++
. * ANALYSIS BEGINS HERE
. * ++++++++++++++++++++++
. 
. * ============================================================
. * SURVIVAL ANALYSES OF SUCCESSFUL AND UNSUCCESSFUL REVOLUTIONS
. * ============================================================
. * Analysis and Figure 9.2
. clear

. use revolutionaryeps.dta, clear

. * Establish data as survival data with reglastyr variable--previously carried out
. stset reglastyr, failure(died==1) origin (time endyear)

     failure event:  died == 1
obs. time interval:  (origin, reglastyr]
 exit on or before:  failure
    t for analysis:  (time-origin)
            origin:  time endyear

------------------------------------------------------------------------------
        345  total observations
         19  event time missing (reglastyr>=.)                  PROBABLE ERROR
          7  observations end on or before enter()
------------------------------------------------------------------------------
        319  observations remaining, representing
        213  failures in single-record/single-failure data
       5937  total analysis time at risk and under observation
                                                at risk from t =         0
                                     earliest observed entry t =         0
                                          last observed exit t =        94

. * All social revolutionary
. stcox i.success  if leftist==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -180.23986
Iteration 1:   log likelihood = -176.60274
Iteration 2:   log likelihood = -176.54117
Iteration 3:   log likelihood =  -176.5411
Refining estimates:
Iteration 0:   log likelihood =  -176.5411

Cox regression -- Breslow method for ties

No. of subjects =           73                  Number of obs    =          73
No. of failures =           50
Time at risk    =         1430
                                                LR chi2(1)       =        7.40
Log likelihood  =    -176.5411                  Prob > chi2      =      0.0065

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     success |
        yes  |     .40296   .1451263    -2.52   0.012     .1989304    .8162491
------------------------------------------------------------------------------

. stcurve, survival  at1(success=0) at2(success=1) range(0 30) ylabel(0(.1)1) ylabel(, angle(0)) xlabel(0(5)30) xm
> tick(1(1)30) outfile("Logfiles\surv1grph.dta", replace)

. * Test proportional hazards assumption
. estat phtest

      Test of proportional-hazards assumption

      Time:  Time
      ----------------------------------------------------------------
                  |                      chi2       df       Prob>chi2
      ------------+---------------------------------------------------
      global test |                      0.87        1         0.3503
      ----------------------------------------------------------------

. * All urban civic
. stcox i.success  if  urbancivic==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -81.415128
Iteration 1:   log likelihood = -81.395029
Iteration 2:   log likelihood = -81.395023
Refining estimates:
Iteration 0:   log likelihood = -81.395023

Cox regression -- Breslow method for ties

No. of subjects =           51                  Number of obs    =          51
No. of failures =           24
Time at risk    =          649
                                                LR chi2(1)       =        0.04
Log likelihood  =   -81.395023                  Prob > chi2      =      0.8411

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     success |
        yes  |   1.094602   .4963441     0.20   0.842     .4500716    2.662141
------------------------------------------------------------------------------

. stcurve, survival  at1(success=0) at2(success=1) range(0 30) ylabel(0(.1)1) ylabel(, angle(0)) xlabel(0(5)30) xm
> tick(1(1)30) outfile("Logfiles\surv2grph.dta", replace)

. * Test proportional hazards assumption
. estat phtest

      Test of proportional-hazards assumption

      Time:  Time
      ----------------------------------------------------------------
                  |                      chi2       df       Prob>chi2
      ------------+---------------------------------------------------
      global test |                      0.14        1         0.7126
      ----------------------------------------------------------------

. * Combine
. use "Logfiles\surv1grph.dta", clear

. rename surv2 surv1_A 

. rename surv3 surv2_A 

. rename _t _tA

. append using "Logfiles\surv2grph.dta"

. rename surv2 surv1 

. rename surv3 surv2 

. twoway connected surv1 surv2 _t, sort msymbol(S S) lw(medthin medthin) lcolor(black black) mfcolor(white black) 
> mlcolor(black black) msize(medium medium) mlw(thin thin) || connected surv1_A surv2_A _tA, sort msymbol(O O) lw(
> medthin medthin) lcolor(black black) mfcolor(white black) mlcolor(black black) msize(medlarge medlarge) mlw(thin
>  thin) xsize(7.5) ysize(7) yline(.5 , lc(gray) lw(medthin)) plotregion(lcolor(black)) xtitle("Years in power aft
> er episode", size(small)) ytitle("Probability of survival", xoffset(1) size(small)) ylabel(.20(.10)1.00, format(
> %9.2fc) labsize(small)) ymtick(.2(.01)1) xlabel(0(5)30, labsize(small)) xmtick(0(1)30) legend(cols(2) pos(6) xof
> fset(-5) label(1 "Failed urban civic") label(2 "Successful urban civic") label(3 "Failed social") label(4 "Succe
> ssful social") size(small) order(3 4 1 2) symplacement(center) keygap(1) bmargin(zero))

. * graph was exported and edited by hand
. *   saved here as pdf
. graph export Logfiles\figure9_2.pdf, replace
(file Logfiles\figure9_2.pdf written in PDF format)

. erase Logfiles\surv1grph.dta

. erase Logfiles\surv2grph.dta

. 
. 
. * Role of episode length, but not vanguard organization, communist parties, violence in revolutionary contention
> , civil war
. * Regimes that result from episodes that last longer also last in power longer
. clear

. use revolutionaryeps.dta, clear

. * Establish data as survival data with reglastyr variable--previously carried out
. stset reglastyr, failure(died==1) origin (time endyear)

     failure event:  died == 1
obs. time interval:  (origin, reglastyr]
 exit on or before:  failure
    t for analysis:  (time-origin)
            origin:  time endyear

------------------------------------------------------------------------------
        345  total observations
         19  event time missing (reglastyr>=.)                  PROBABLE ERROR
          7  observations end on or before enter()
------------------------------------------------------------------------------
        319  observations remaining, representing
        213  failures in single-record/single-failure data
       5937  total analysis time at risk and under observation
                                                at risk from t =         0
                                     earliest observed entry t =         0
                                          last observed exit t =        94

. * Testing for impact of social civil society repression, revolution, revolutionary organization, civil war, deat
> hs, and episode duration
. * V-Dem measure of repression of civil society (higher scores stand for higher repression)
. stcox  c.vdcsrepressplus1##c.vdcsrepressplus1 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -290.00296
Iteration 1:   log likelihood = -287.23446
Iteration 2:   log likelihood = -287.20306
Iteration 3:   log likelihood = -287.20305
Refining estimates:
Iteration 0:   log likelihood = -287.20305

Cox regression -- Breslow method for ties

No. of subjects =          112                  Number of obs    =         112
No. of failures =           72
Time at risk    =         1827
                                                LR chi2(2)       =        5.60
Log likelihood  =   -287.20305                  Prob > chi2      =      0.0608

-------------------------------------------------------------------------------------------------------
                                   _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------------+----------------------------------------------------------------
                     vdcsrepressplus1 |   2.021256   .7163852     1.99   0.047     1.009098    4.048639
                                      |
c.vdcsrepressplus1#c.vdcsrepressplus1 |   .8522745   .0851872    -1.60   0.110     .7006474    1.036715
-------------------------------------------------------------------------------------------------------

. stcox  c.vdcsrepressplus2##c.vdcsrepressplus2 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -285.19477
Iteration 1:   log likelihood =  -279.8221
Iteration 2:   log likelihood = -279.78051
Iteration 3:   log likelihood =  -279.7805
Refining estimates:
Iteration 0:   log likelihood =  -279.7805

Cox regression -- Breslow method for ties

No. of subjects =          111                  Number of obs    =         111
No. of failures =           71
Time at risk    =         1826
                                                LR chi2(2)       =       10.83
Log likelihood  =    -279.7805                  Prob > chi2      =      0.0045

-------------------------------------------------------------------------------------------------------
                                   _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------------+----------------------------------------------------------------
                     vdcsrepressplus2 |   2.634929   .8286319     3.08   0.002     1.422601    4.880391
                                      |
c.vdcsrepressplus2#c.vdcsrepressplus2 |   .7954035   .0663025    -2.75   0.006     .6755133    .9365719
-------------------------------------------------------------------------------------------------------

. stcox  c.vdcsrepressplus3##c.vdcsrepressplus3 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -285.19477
Iteration 1:   log likelihood = -279.83692
Iteration 2:   log likelihood = -279.77467
Iteration 3:   log likelihood = -279.77464
Refining estimates:
Iteration 0:   log likelihood = -279.77464

Cox regression -- Breslow method for ties

No. of subjects =          111                  Number of obs    =         111
No. of failures =           71
Time at risk    =         1826
                                                LR chi2(2)       =       10.84
Log likelihood  =   -279.77464                  Prob > chi2      =      0.0044

-------------------------------------------------------------------------------------------------------
                                   _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------------+----------------------------------------------------------------
                     vdcsrepressplus3 |   2.588047   .8188926     3.01   0.003     1.392004    4.811757
                                      |
c.vdcsrepressplus3#c.vdcsrepressplus3 |   .8062018   .0666956    -2.60   0.009     .6855283    .9481175
-------------------------------------------------------------------------------------------------------

. stcox  c.vdcsrepressplus4##c.vdcsrepressplus4 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -285.01295
Iteration 1:   log likelihood = -280.47813
Iteration 2:   log likelihood = -280.40887
Iteration 3:   log likelihood = -280.40882
Refining estimates:
Iteration 0:   log likelihood = -280.40882

Cox regression -- Breslow method for ties

No. of subjects =          109                  Number of obs    =         109
No. of failures =           71
Time at risk    =         1824
                                                LR chi2(2)       =        9.21
Log likelihood  =   -280.40882                  Prob > chi2      =      0.0100

-------------------------------------------------------------------------------------------------------
                                   _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------------+----------------------------------------------------------------
                     vdcsrepressplus4 |   2.256197   .7153418     2.57   0.010     1.211987    4.200064
                                      |
c.vdcsrepressplus4#c.vdcsrepressplus4 |   .8440969   .0696101    -2.06   0.040     .7181188    .9921751
-------------------------------------------------------------------------------------------------------

. stcox  c.vdcsrepressplus5##c.vdcsrepressplus5 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -280.06937
Iteration 1:   log likelihood = -275.13592
Iteration 2:   log likelihood = -275.05278
Iteration 3:   log likelihood = -275.05271
Refining estimates:
Iteration 0:   log likelihood = -275.05271

Cox regression -- Breslow method for ties

No. of subjects =          107                  Number of obs    =         107
No. of failures =           70
Time at risk    =         1820
                                                LR chi2(2)       =       10.03
Log likelihood  =   -275.05271                  Prob > chi2      =      0.0066

-------------------------------------------------------------------------------------------------------
                                   _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------------------------+----------------------------------------------------------------
                     vdcsrepressplus5 |   2.402058   .7743547     2.72   0.007     1.276969    4.518419
                                      |
c.vdcsrepressplus5#c.vdcsrepressplus5 |   .8316261    .068973    -2.22   0.026      .706857    .9784185
-------------------------------------------------------------------------------------------------------

. stcox  c.vdcsrepressavg1to5##c.vdcsrepressavg1to5 if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -280.06937
Iteration 1:   log likelihood = -274.58799
Iteration 2:   log likelihood = -274.49404
Iteration 3:   log likelihood = -274.49394
Refining estimates:
Iteration 0:   log likelihood = -274.49394

Cox regression -- Breslow method for ties

No. of subjects =          107                  Number of obs    =         107
No. of failures =           70
Time at risk    =         1820
                                                LR chi2(2)       =       11.15
Log likelihood  =   -274.49394                  Prob > chi2      =      0.0038

-----------------------------------------------------------------------------------------------------------
                                       _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------------------------+----------------------------------------------------------------
                       vdcsrepressavg1to5 |   2.858117   1.002363     2.99   0.003     1.437333    5.683329
                                          |
c.vdcsrepressavg1to5#c.vdcsrepressavg1to5 |   .7840111   .0733537    -2.60   0.009     .6526526     .941808
-----------------------------------------------------------------------------------------------------------

. ttest vdcsrepressavg1to5 if  success==1, by(leftist)

Two-sample t test with equal variances
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
      no |      87    1.494253    .1292687    1.205738    1.237275     1.75123
     yes |      21    2.542857    .2589881    1.186833    2.002617    3.083097
---------+--------------------------------------------------------------------
combined |     108    1.698148    .1219291    1.267124    1.456438    1.939858
---------+--------------------------------------------------------------------
    diff |           -1.048604    .2922921               -1.628102   -.4691069
------------------------------------------------------------------------------
    diff = mean(no) - mean(yes)                                   t =  -3.5875
Ho: diff = 0                                     degrees of freedom =      106

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0003         Pr(|T| > |t|) = 0.0005          Pr(T > t) = 0.9997

. * Vanguard parties and communist rule
. * Revolutions based on vanguard parties and communist regimes have no relationship to longevity
. stcox  vanguard if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -310.15172
Iteration 2:   log likelihood = -310.13574
Iteration 3:   log likelihood = -310.13573
Refining estimates:
Iteration 0:   log likelihood = -310.13573

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        1.42
Log likelihood  =   -310.13573                  Prob > chi2      =      0.2335

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    vanguard |   .6164123   .2668907    -1.12   0.264     .2638292     1.44019
------------------------------------------------------------------------------

. stcox  newregimecommunist if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -310.37063
Iteration 2:   log likelihood = -310.36106
Iteration 3:   log likelihood = -310.36106
Refining estimates:
Iteration 0:   log likelihood = -310.36106

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        0.97
Log likelihood  =   -310.36106                  Prob > chi2      =      0.3250

------------------------------------------------------------------------------------
                _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------------+----------------------------------------------------------------
newregimecommunist |    .642341   .3062161    -0.93   0.353     .2523374     1.63512
------------------------------------------------------------------------------------

. * Testing for impact of social revolution, revolutionary organization, civil war, deaths in revolutionary conten
> tion, and episode duration
. * Shows episode duration as the key factor
. stcox  leftist  if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -307.46158
Iteration 2:   log likelihood = -307.37623
Iteration 3:   log likelihood = -307.37611
Refining estimates:
Iteration 0:   log likelihood = -307.37611

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        6.94
Log likelihood  =   -307.37611                  Prob > chi2      =      0.0084

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     leftist |   .4540575   .1471241    -2.44   0.015     .2406045     .856876
------------------------------------------------------------------------------

. stcox  vanguard if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -310.15172
Iteration 2:   log likelihood = -310.13574
Iteration 3:   log likelihood = -310.13573
Refining estimates:
Iteration 0:   log likelihood = -310.13573

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        1.42
Log likelihood  =   -310.13573                  Prob > chi2      =      0.2335

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    vanguard |   .6164123   .2668907    -1.12   0.264     .2638292     1.44019
------------------------------------------------------------------------------

. stcox  civilwar if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -307.55672
Iteration 2:   log likelihood = -307.54771
Iteration 3:   log likelihood = -307.54771
Refining estimates:
Iteration 0:   log likelihood = -307.54771

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        6.60
Log likelihood  =   -307.54771                  Prob > chi2      =      0.0102

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    civilwar |   .5290732   .1352477    -2.49   0.013     .3205693    .8731916
------------------------------------------------------------------------------

. stcox  lndeaths if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -309.49269
Iteration 2:   log likelihood =  -309.4921
Refining estimates:
Iteration 0:   log likelihood =  -309.4921

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =        2.71
Log likelihood  =    -309.4921                  Prob > chi2      =      0.0999

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    lndeaths |    .959374   .0244398    -1.63   0.104      .912649    1.008491
------------------------------------------------------------------------------

. stcox  lnmonthsdur if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -300.99295
Iteration 2:   log likelihood = -300.90356
Iteration 3:   log likelihood = -300.90352
Refining estimates:
Iteration 0:   log likelihood = -300.90352

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =       19.88
Log likelihood  =   -300.90352                  Prob > chi2      =      0.0000

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 lnmonthsdur |   .7078536   .0583737    -4.19   0.000     .6022107     .832029
------------------------------------------------------------------------------

. stcox  leftist vanguard if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -307.44708
Iteration 2:   log likelihood = -307.36164
Iteration 3:   log likelihood = -307.36152
Refining estimates:
Iteration 0:   log likelihood = -307.36152

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(2)       =        6.97
Log likelihood  =   -307.36152                  Prob > chi2      =      0.0307

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     leftist |   .4646189   .1625408    -2.19   0.028     .2340536    .9223133
    vanguard |   .9240054   .4309322    -0.17   0.865     .3704214    2.304904
------------------------------------------------------------------------------

. stcox  leftist civilwar if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -306.03657
Iteration 2:   log likelihood = -305.94499
Iteration 3:   log likelihood = -305.94485
Refining estimates:
Iteration 0:   log likelihood = -305.94485

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(2)       =        9.80
Log likelihood  =   -305.94485                  Prob > chi2      =      0.0074

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     leftist |   .5512502   .1911955    -1.72   0.086     .2793304    1.087876
    civilwar |   .6384297   .1734349    -1.65   0.099     .3748667      1.0873
------------------------------------------------------------------------------

. stcox  leftist lndeaths if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -307.32963
Iteration 2:   log likelihood = -307.24571
Iteration 3:   log likelihood = -307.24559
Refining estimates:
Iteration 0:   log likelihood = -307.24559

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(2)       =        7.20
Log likelihood  =   -307.24559                  Prob > chi2      =      0.0273

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     leftist |   .4881946   .1729041    -2.02   0.043     .2438498      .97738
    lndeaths |   .9858531   .0276209    -0.51   0.611     .9331768    1.041503
------------------------------------------------------------------------------

. stcox  leftist lnmonthsdur if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -300.78624
Iteration 2:   log likelihood = -300.64339
Iteration 3:   log likelihood = -300.64317
Refining estimates:
Iteration 0:   log likelihood = -300.64317

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(2)       =       20.40
Log likelihood  =   -300.64317                  Prob > chi2      =      0.0000

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     leftist |   .7742147   .2791548    -0.71   0.478     .3818984     1.56955
 lnmonthsdur |   .7281831   .0661604    -3.49   0.000     .6094009    .8701179
------------------------------------------------------------------------------

. stcox  leftist  vanguard  civilwar lndeaths lnmonths  c.vdcsrepressavg1to5##c.vdcsrepressavg1to5 if ongoing==0 &
>  success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -280.06937
Iteration 1:   log likelihood = -259.59085
Iteration 2:   log likelihood = -258.31556
Iteration 3:   log likelihood = -258.30656
Iteration 4:   log likelihood = -258.30656
Refining estimates:
Iteration 0:   log likelihood = -258.30656

Cox regression -- Breslow method for ties

No. of subjects =          107                  Number of obs    =         107
No. of failures =           70
Time at risk    =         1820
                                                LR chi2(7)       =       43.53
Log likelihood  =   -258.30656                  Prob > chi2      =      0.0000

-----------------------------------------------------------------------------------------------------------
                                       _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------------------------+----------------------------------------------------------------
                                  leftist |   .4991076   .2066972    -1.68   0.093     .2216579    1.123842
                                 vanguard |   .6600975   .3406222    -0.80   0.421     .2400893    1.814861
                                 civilwar |   1.181024   .7017314     0.28   0.779      .368552     3.78459
                                 lndeaths |   1.054684   .0526653     1.07   0.286     .9563522    1.163126
                              lnmonthsdur |    .581198   .1015319    -3.11   0.002     .4126902    .8185101
                       vdcsrepressavg1to5 |   2.732493   1.023311     2.68   0.007     1.311555    5.692874
                                          |
c.vdcsrepressavg1to5#c.vdcsrepressavg1to5 |   .8507068   .0826724    -1.66   0.096     .7031685    1.029201
-----------------------------------------------------------------------------------------------------------

. * Figure 9.3--graphed at episode lengths of 2 mos, 4 mos, 7 mos, 1 yr, 2 yrs, 4 yrs, 10 yrs
. stcox  lnmonthsdur if ongoing==0 & success==1

         failure _d:  died == 1
   analysis time _t:  (reglastyr-origin)
             origin:  time endyear

Iteration 0:   log likelihood = -310.84551
Iteration 1:   log likelihood = -300.99295
Iteration 2:   log likelihood = -300.90356
Iteration 3:   log likelihood = -300.90352
Refining estimates:
Iteration 0:   log likelihood = -300.90352

Cox regression -- Breslow method for ties

No. of subjects =          119                  Number of obs    =         119
No. of failures =           76
Time at risk    =         1908
                                                LR chi2(1)       =       19.88
Log likelihood  =   -300.90352                  Prob > chi2      =      0.0000

------------------------------------------------------------------------------
          _t | Haz. Ratio   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
 lnmonthsdur |   .7078536   .0583737    -4.19   0.000     .6022107     .832029
------------------------------------------------------------------------------

. stcurve, survival at1(lnmonthsdur=.69314718) at2(lnmonthsdur=1.3862944) at3(lnmonthsdur=1.9459101) at4(lnmonthsd
> ur=2.4849066) at5(lnmonthsdur=3.1780538) at6(lnmonthsdur=3.871201) at7(lnmonthsdur=4.7874917) range(0 30) ylabel
> (0(.1)1) ylabel(, angle(0)) xlabel(0(5)30) xmtick(1(1)30) lpattern(solid solid solid solid solid solid solid) le
> gend(off) title("") lw(medthin medthin medthin medthin medthin medthin medthin) lcolor(black black black black b
> lack black black) xsize(7.75) ysize(7) yline(.5 , lc(gray)) plotregion(lcolor(black)) xtitle("Years in power aft
> er episode", size(small)) ytitle("Probability of survival", xoffset(1) size(small)) ylabel(.00(.10)1.00, format(
> %9.2fc) labsize(small)) ymtick(0(.01)1) xlabel(0(5)30, labsize(small)) xmtick(0(1)30)

. * graph was exported and then edited by hand
. *  saved here as pdf
. graph export Logfiles\figure9_3.pdf, replace
(file Logfiles\figure9_3.pdf written in PDF format)

. 
. * ===============================================================
. * STATE CAPACITY IN SUCCESSFUL SOCIAL AND URBAN CIVIC REVOLUTIONS
. * ===============================================================
. * V-Dem Territorial control
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "vdsvstterr"

. quietly: chp9simpmultimp

. * Successful urban civic vs. successful social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        462

Group variable: revid                           Number of groups  =         42
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1122
                                                Largest FMI       =     0.0975
                                                Complete DF       =         41
DF adjustment:   Small sample                   DF:     min       =      34.51
                                                        avg       =      37.84
                                                        max       =      39.14
Model F test:       Equal FMI                   F(  19,   38.5)   =       3.03
Within VCE type:       Robust                   Prob > F          =     0.0017

                                (Within VCE adjusted for 42 clusters in revid)
------------------------------------------------------------------------------
  vdsvstterr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .3474397   .1744299     1.99   0.053    -.0053387    .7002182
          1  |   .3282826   .1742228     1.88   0.067    -.0240771    .6806423
          3  |  -1.982508   .9921987    -2.00   0.053    -3.989196    .0241793
          4  |  -.1188243    1.17407    -0.10   0.920    -2.494687    2.257038
          5  |  -.3268334   1.347496    -0.24   0.810    -3.056153    2.402486
          6  |  -.1984903    1.42072    -0.14   0.890    -3.079199    2.682219
          7  |   -.433469   1.547428    -0.28   0.781    -3.571585    2.704647
          8  |   -.704113   1.572148    -0.45   0.657    -3.897372    2.489146
          9  |  -.9955604   1.822896    -0.55   0.588    -4.697648    2.706527
         10  |  -1.270228   1.638871    -0.78   0.443    -4.595917     2.05546
             |
leftist#year |
       1  0  |  -1.019967   .8068414    -1.26   0.214    -2.653603    .6136696
       1  1  |  -.1691714   .4426303    -0.38   0.705     -1.06673    .7283867
       1  3  |  -2.192583   4.782512    -0.46   0.649    -11.86505    7.479882
       1  4  |   1.611832   4.650353     0.35   0.731    -7.793661    11.01733
       1  5  |   2.795564   4.999828     0.56   0.579    -7.317334    12.90846
       1  6  |   3.021067   5.014784     0.60   0.550    -7.122767     13.1649
       1  7  |   3.271431   5.136178     0.64   0.528    -7.118273    13.66113
       1  8  |   2.865152   5.378387     0.53   0.597    -8.015227    13.74553
       1  9  |    3.92583   5.354835     0.73   0.468    -6.907851    14.75951
       1 10  |   4.200498   5.295017     0.79   0.432    -6.511029    14.91202
             |
       _cons |   87.23489   1.190837    73.26   0.000     84.82647    89.64332
-------------+----------------------------------------------------------------
     sigma_u |  9.9268374
     sigma_e |  6.5092846
         rho |   .6993122   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        462
                                                Average RVI       =  3519.0610
                                                Largest FMI       =     0.1174
                                                Complete DF       =         41
DF adjustment:   Small sample                   DF:     min       =      33.37
                                                        avg       =      37.94
Within VCE type: Delta-method                           max       =      39.14

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   87.58233    1.21593    72.03   0.000     85.12316    90.04151
          2  |   87.56318    1.21167    72.27   0.000     85.11262    90.01374
          3  |   87.23489   1.190837    73.26   0.000     84.82647    89.64332
          4  |   85.25239   1.242469    68.62   0.000     82.73954    87.76524
          5  |   87.11607   1.218964    71.47   0.000     84.64947    89.58267
          6  |   86.90806   1.299144    66.90   0.000     84.27632     89.5398
          7  |    87.0364   1.315626    66.16   0.000     84.36732    89.70549
          8  |   86.80142   1.404277    61.81   0.000     83.95143    89.65142
          9  |   86.53078   1.435643    60.27   0.000     83.61128    89.45028
         10  |   86.23933   1.641518    52.54   0.000     82.90104    89.57763
         11  |   85.96467   1.539412    55.84   0.000     82.83894    89.09039
         12  |   86.56237   1.575414    54.95   0.000     83.37531    89.74943
         13  |   87.39401   1.369396    63.82   0.000     84.62386    90.16415
         14  |   87.23489   1.190837    73.26   0.000     84.82647    89.64332
         15  |    83.0598   4.128013    20.12   0.000     74.71104    91.40857
         16  |    88.7279   3.636383    24.40   0.000     81.37344    96.08236
         17  |   89.70362    3.89264    23.04   0.000     81.83089    97.57635
         18  |   90.05747   3.882219    23.20   0.000     82.20582    97.90913
         19  |   90.07286   3.964992    22.72   0.000      82.0538    98.09192
         20  |   89.39593   4.214308    21.21   0.000     80.87264    97.91923
         21  |   90.16516   4.125514    21.86   0.000     81.82145    98.50887
         22  |   90.16516   4.125514    21.86   0.000     81.82145    98.50887
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         29       69.05       69.05
          1 |         13       30.95      100.00
------------+-----------------------------------
      Total |         42      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 3.4 percent of observations

. * Complete case sample as robustness test
. use simplediffindifflong.dta, clear

. xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        445
Group variable: revid                           Number of groups  =         43

R-sq:                                           Obs per group:
     within  = 0.0548                                         min =          4
     between = 0.0018                                         avg =       10.3
     overall = 0.0085                                         max =         11

                                                F(19,42)          =          .
corr(u_i, Xb)  = -0.0622                        Prob > F          =          .

                                 (Std. Err. adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  vdsvstterr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .3474397    .174532     1.99   0.053    -.0047802    .6996596
          1  |   .3282826   .1743249     1.88   0.067    -.0235192    .6800844
          3  |  -1.982508   .9927797    -2.00   0.052    -3.986019    .0210022
          4  |  -.0882998   1.191677    -0.07   0.941    -2.493202    2.316602
          5  |  -.2580434   1.340013    -0.19   0.848    -2.962299    2.446212
          6  |  -.0751068    1.37789    -0.05   0.957    -2.855802    2.705588
          7  |  -.3164838   1.350789    -0.23   0.816    -3.042486    2.409519
          8  |  -.4104675   1.339694    -0.31   0.761    -3.114079    2.293144
          9  |  -.5868523    1.56946    -0.37   0.710    -3.754152    2.580447
         10  |  -.4845214   1.351932    -0.36   0.722    -3.212831    2.243788
             |
leftist#year |
       1  0  |  -.6062855   1.056019    -0.57   0.569    -2.737418    1.524847
       1  1  |   .2683588   .7264658     0.37   0.714    -1.197708    1.734426
       1  3  |  -3.018748   4.747205    -0.64   0.528      -12.599      6.5615
       1  4  |   1.650278    4.64009     0.36   0.724    -7.713803    11.01436
       1  5  |   2.868907   4.975195     0.58   0.567    -7.171442    12.90926
       1  6  |   3.014542   4.980753     0.61   0.548    -7.037023    13.06611
       1  7  |   3.270205   5.052988     0.65   0.521    -6.927137    13.46755
       1  8  |   2.735617   5.270434     0.52   0.606    -7.900549    13.37178
       1  9  |   3.626288    5.23164     0.69   0.492    -6.931589    14.18416
       1 10  |   3.523957   5.170548     0.68   0.499    -6.910632    13.95855
             |
       _cons |   87.23754   1.231881    70.82   0.000      84.7515    89.72357
-------------+----------------------------------------------------------------
     sigma_u |  9.7000883
     sigma_e |  6.4630101
         rho |  .69255248   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        445
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   87.58498   1.251552    69.98   0.000     85.13198    90.03797
       0  1  |   87.56582   1.247778    70.18   0.000     85.12022    90.01142
       0  2  |   87.23754   1.231881    70.82   0.000     84.82309    89.65198
       0  3  |   85.25503   1.324442    64.37   0.000     82.65917    87.85089
       0  4  |   87.14924   1.356471    64.25   0.000      84.4906    89.80787
       0  5  |   86.97949   1.427539    60.93   0.000     84.18157    89.77742
       0  6  |   87.16243    1.41588    61.56   0.000     84.38736     89.9375
       0  7  |   86.92105   1.422401    61.11   0.000      84.1332    89.70891
       0  8  |   86.82707   1.417237    61.27   0.000     84.04933     89.6048
       0  9  |   86.65068     1.6047    54.00   0.000     83.50553    89.79584
       0 10  |   86.75301    1.51855    57.13   0.000     83.77671    89.72932
       1  0  |   86.97869   1.944324    44.73   0.000     83.16789    90.78949
       1  1  |   87.83418   1.733547    50.67   0.000     84.43649    91.23187
       1  2  |   87.23754   1.231881    70.82   0.000     84.82309    89.65198
       1  3  |   82.23628   4.005195    20.53   0.000     74.38624    90.08632
       1  4  |   88.79951   3.503103    25.35   0.000     81.93356    95.66547
       1  5  |    89.8484   3.747135    23.98   0.000     82.50415    97.19265
       1  6  |   90.17697   3.737211    24.13   0.000     82.85217    97.50177
       1  7  |   90.19126   3.815019    23.64   0.000     82.71396    97.66856
       1  8  |   89.56269   4.047931    22.13   0.000     81.62889    97.49648
       1  9  |   90.27697   3.960407    22.79   0.000     82.51471    98.03923
       1 10  |   90.27697   3.960407    22.79   0.000     82.51471    98.03923
------------------------------------------------------------------------------

. 
. * Military expenditure in the wake of revolution
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "milex"

. quietly: chp9simpmultimp

. * Successful urban civic vs. successful social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =        451

Group variable: revid                           Number of groups  =         41
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.5060
                                                Largest FMI       =     0.3673
                                                Complete DF       =         40
DF adjustment:   Small sample                   DF:     min       =      21.67
                                                        avg       =      34.04
                                                        max       =      38.14
Model F test:       Equal FMI                   F(  20,   35.4)   =       0.64
Within VCE type:       Robust                   Prob > F          =     0.8569

                                (Within VCE adjusted for 41 clusters in revid)
------------------------------------------------------------------------------
       milex |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |  -321590.2   151042.5    -2.13   0.040    -627323.1   -15857.35
          1  |  -98538.29   44725.52    -2.20   0.034    -189069.5   -8007.081
          3  |  -215888.7   232705.4    -0.93   0.359    -686919.5    255142.1
          4  |  -95790.66   236555.6    -0.40   0.688    -575100.4    383519.1
          5  |  -48237.82   396090.3    -0.12   0.904    -853036.2    756560.5
          6  |   175880.6   492124.4     0.36   0.723    -827442.9     1179204
          7  |   533373.6   496153.9     1.08   0.291    -478389.5     1545137
          8  |   624393.1   566498.3     1.10   0.279    -532580.8     1781367
          9  |     429097   638932.4     0.67   0.507    -872253.1     1730447
         10  |   557334.5   762976.8     0.73   0.470    -996536.9     2111206
             |
leftist#year |
       1  0  |   64421.69     372814     0.17   0.864    -692990.6      821834
       1  1  |   199697.5   209824.6     0.95   0.352    -235839.8    635234.8
       1  3  |     130333     563029     0.23   0.818     -1010380     1271046
       1  4  |    -204872   619015.8    -0.33   0.743     -1459584     1049840
       1  5  |   312889.9   615719.6     0.51   0.614      -936379     1562159
       1  6  |   444012.7   914272.4     0.49   0.630     -1411635     2299660
       1  7  |  -60103.93   877069.2    -0.07   0.946     -1843880     1723672
       1  8  |   317339.7    1186956     0.27   0.791     -2094064     2728743
       1  9  |   26808.15   909819.2     0.03   0.977     -1823442     1877059
       1 10  |  -547931.6   973965.2    -0.56   0.577     -2528103     1432240
             |
       _cons |    1705679   230295.1     7.41   0.000      1239300     2172059
-------------+----------------------------------------------------------------
     sigma_u |  3463107.5
     sigma_e |  1603513.3
         rho |   .8234558   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =        451
                                                Average RVI       =   104.3718
                                                Largest FMI       =     0.3278
                                                Complete DF       =         40
DF adjustment:   Small sample                   DF:     min       =      23.39
                                                        avg       =      33.11
Within VCE type: Delta-method                           max       =      37.87

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    1384089     329841     4.20   0.000     716285.6     2051893
          2  |    1607141   260767.3     6.16   0.000      1079110     2135172
          3  |    1705679   230295.1     7.41   0.000      1239300     2172059
          4  |    1489791   227832.3     6.54   0.000      1028394     1951188
          5  |    1609889   201052.4     8.01   0.000      1201779     2017998
          6  |    1657441     258242     6.42   0.000      1128482     2186401
          7  |    1881560   345502.1     5.45   0.000      1168676     2594444
          8  |    2239053   364135.3     6.15   0.000      1486935     2991171
          9  |    2330072   438785.6     5.31   0.000      1423216     3236929
         10  |    2134776   481754.9     4.43   0.000      1145830     3123723
         11  |    2263014   604898.6     3.74   0.001      1023774     3502254
         12  |    1448511   367761.1     3.94   0.000     702250.7     2194771
         13  |    1806839   307152.4     5.88   0.000      1181911     2431766
         14  |    1705679   230295.1     7.41   0.000      1239300     2172059
         15  |    1620124   495378.5     3.27   0.002     616787.7     2623460
         16  |    1405017     571210     2.46   0.019     248017.1     2562016
         17  |    1970331   417780.9     4.72   0.000      1121864     2818799
         18  |    2325573   700350.8     3.32   0.002     905592.3     3745553
         19  |    2178949   644159.1     3.38   0.002     871228.7     3486669
         20  |    2647412   968817.9     2.73   0.010     682641.5     4612183
         21  |    2161584   584660.1     3.70   0.001     972593.8     3350575
         22  |    1715082   598637.5     2.86   0.007     496443.4     2933721
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         28       68.29       68.29
          1 |         13       31.71      100.00
------------+-----------------------------------
      Total |         41      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 11.1 percent of observations

. * Complete case sample as robustness test
. * Military expenditure in the wake of revolution
. use simplediffindifflong.dta, clear

. xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        414
Group variable: revid                           Number of groups  =         43

R-sq:                                           Obs per group:
     within  = 0.0566                                         min =          4
     between = 0.0164                                         avg =        9.6
     overall = 0.0016                                         max =         11

                                                F(20,42)          =       1.53
corr(u_i, Xb)  = -0.1044                        Prob > F          =     0.1200

                                 (Std. Err. adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
       milex |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |  -321590.2   151270.3    -2.13   0.039      -626866   -16314.44
          1  |  -98538.29   44792.96    -2.20   0.033    -188934.1   -8142.431
          3  |  -205086.9   232078.2    -0.88   0.382    -673439.6    263265.9
          4  |  -205303.2   242705.3    -0.85   0.402    -695102.3    284495.9
          5  |  -293841.2   339483.9    -0.87   0.392    -978947.4      391265
          6  |  -181628.7   383682.2    -0.47   0.638    -955930.7    592673.3
          7  |   251103.8   316078.9     0.79   0.431    -386769.2    888976.9
          8  |   206955.6   335840.7     0.62   0.541    -470798.2    884709.5
          9  |   18832.91     366051     0.05   0.959    -719887.9    757553.7
         10  |   97007.61   413127.6     0.23   0.815    -736717.7    930732.9
             |
leftist#year |
       1  0  |   105038.9   411026.5     0.26   0.800    -724446.2    934524.1
       1  1  |   318966.7   233303.4     1.37   0.179    -151858.6      789792
       1  3  |   278125.1   572589.6     0.49   0.630    -877407.4     1433658
       1  4  |   132476.8   618041.6     0.21   0.831     -1114782     1379735
       1  5  |   799617.7   617188.4     1.30   0.202    -445918.8     2045154
       1  6  |    1026516   892427.4     1.15   0.257    -774475.7     2827507
       1  7  |   543408.1   820600.1     0.66   0.511     -1112630     2199446
       1  8  |   958525.4    1095841     0.87   0.387     -1252971     3170022
       1  9  |   714131.1     737019     0.97   0.338    -773233.4     2201496
       1 10  |   248472.2   692299.6     0.36   0.721     -1148645     1645589
             |
       _cons |    1392877     191562     7.27   0.000      1006289     1779465
-------------+----------------------------------------------------------------
     sigma_u |  2777104.9
     sigma_e |  1243975.7
         rho |  .83288217   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        414
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |    1071287   228247.6     4.69   0.000     623929.6     1518644
       0  1  |    1294339   202753.2     6.38   0.000     896949.6     1691728
       0  2  |    1392877     191562     7.27   0.000      1017422     1768332
       0  3  |    1187790   217946.7     5.45   0.000     760622.3     1614958
       0  4  |    1187574   188076.7     6.31   0.000     818950.1     1556197
       0  5  |    1099036   258412.5     4.25   0.000     592556.5     1605515
       0  6  |    1211248   294622.8     4.11   0.000     633798.1     1788698
       0  7  |    1643981   258247.7     6.37   0.000      1137825     2150137
       0  8  |    1599833   280421.4     5.71   0.000      1050217     2149448
       0  9  |    1411710   275351.1     5.13   0.000     872031.6     1951388
       0 10  |    1489885   316782.7     4.70   0.000     869001.7     2110767
       1  0  |    1176326   363786.4     3.23   0.001     463317.3     1889334
       1  1  |    1613305   295421.4     5.46   0.000      1034290     2192321
       1  2  |    1392877     191562     7.27   0.000      1017422     1768332
       1  3  |    1465915   474085.3     3.09   0.002     536725.1     2395105
       1  4  |    1320050   540290.8     2.44   0.015     261099.9     2379001
       1  5  |    1898653   405671.5     4.68   0.000      1103552     2693755
       1  6  |    2237764   698490.3     3.20   0.001       868748     3606780
       1  7  |    2187389   650385.6     3.36   0.001     912656.4     3462121
       1  8  |    2558358   949292.3     2.70   0.007     697779.3     4418937
       1  9  |    2125841   534225.2     3.98   0.000      1078779     3172903
       1 10  |    1738357   499107.3     3.48   0.000     760124.4     2716589
------------------------------------------------------------------------------

. 
. * State capacity (Hanson/Sigman) in the wake of successful social and urban civic revolutions, comparison w. mat
> ched samples
. * WARNING--reduced sample size
. * Matched cases (successful vs. failed revolutions)
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "statecapacity"

. quietly: chp9matchmultimp

. * Successful social vs. matched cases
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =        209

Group variable: diffid                          Number of groups  =         19
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1998
                                                Largest FMI       =     0.1798
                                                Complete DF       =          3
                                                DF:     min       =       1.86
                                                        avg       =       1.99
DF adjustment:   Small sample                           max       =       2.00
                                                F(   4,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 4 clusters in revid)
------------------------------------------------------------------------------
statecapac~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.1286936   .0285434    -4.51   0.052    -.2609615    .0035744
          1  |  -.0268314   .0195123    -1.38   0.303    -.1107861    .0571233
          3  |   .0298018   .0310168     0.96   0.438    -.1036526    .1632563
          4  |   .1044343   .0402751     2.59   0.122    -.0688554    .2777239
          5  |    .142975   .0684878     2.09   0.172    -.1517043    .4376543
          6  |   .0997097   .0655811     1.52   0.268     -.182463    .3818825
          7  |   .0975179   .0728904     1.34   0.313    -.2161043    .4111402
          8  |   .0880563   .0743941     1.18   0.358    -.2320355    .4081481
          9  |    .082351   .0936281     0.88   0.472    -.3204981    .4852002
         10  |   .0590212   .1195592     0.49   0.670    -.4554005    .5734429
             |
  revny#year |
       1  0  |  -.0543928   .1398662    -0.39   0.735     -.657893    .5491074
       1  1  |  -.0636533   .0858754    -0.74   0.536    -.4331455    .3058389
       1  3  |  -.4203568   .1424685    -2.95   0.098    -1.033349    .1926357
       1  4  |  -.5272475   .2216707    -2.38   0.140    -1.481019    .4265244
       1  5  |  -.5148711   .4860303    -1.06   0.400    -2.606091    1.576348
       1  6  |  -.0845423   .1799237    -0.47   0.685    -.8586913    .6896067
       1  7  |  -.0102627   .1815097    -0.06   0.960     -.791236    .7707106
       1  8  |   .1353009   .1720841     0.79   0.514     -.605117    .8757189
       1  9  |   .0870032   .2084538     0.42   0.717    -.8099011    .9839076
       1 10  |   -.069079   .2859395    -0.24   0.832    -1.299377    1.161219
             |
       _cons |  -.4606239   .0859447    -5.36   0.033     -.830414   -.0908338
-------------+----------------------------------------------------------------
     sigma_u |  .66678505
     sigma_e |  .26962362
         rho |  .85946838   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =        209
                                                Average RVI       =     0.2209
                                                Largest FMI       =     0.1052
                                                Complete DF       =          3
DF adjustment:   Small sample                   DF:     min       =       1.99
                                                        avg       =       2.00
Within VCE type: Delta-method                           max       =       2.00

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |  -.5893175   .1120012    -5.26   0.035    -1.073354   -.1052808
          2  |  -.4874553   .1010622    -4.82   0.040     -.922291   -.0526197
          3  |  -.4606239   .0859447    -5.36   0.033     -.830414   -.0908338
          4  |  -.4308221    .061972    -6.95   0.020     -.697466   -.1641782
          5  |  -.3561896   .0666863    -5.34   0.033    -.6431175   -.0692618
          6  |  -.3176489   .0308838   -10.29   0.009     -.450531   -.1847669
          7  |  -.3609142   .0471234    -7.66   0.017    -.5636698   -.1581585
          8  |   -.363106   .0441663    -8.22   0.014     -.553138   -.1730739
          9  |  -.3725676   .0754203    -4.94   0.039    -.6970749   -.0480603
         10  |  -.3782729   .0665094    -5.69   0.030    -.6644397   -.0921061
         11  |  -.4016027   .1174059    -3.42   0.076    -.9067595    .1035541
         12  |  -.6437103   .2199115    -2.93   0.100    -1.589913    .3024923
         13  |  -.5511086   .1715057    -3.21   0.085    -1.289038    .1868209
         14  |  -.4606239   .0859447    -5.36   0.033     -.830414   -.0908338
         15  |  -.8511789   .1434058    -5.94   0.027    -1.468204   -.2341537
         16  |  -.8834372   .1639578    -5.39   0.033    -1.588891   -.1779837
         17  |    -.83252   .4555066    -1.83   0.209    -2.792407    1.127367
         18  |  -.4454564   .1407239    -3.17   0.087    -1.050942    .1600295
         19  |  -.3733687   .1463035    -2.55   0.125    -1.002862    .2561245
         20  |  -.2372666    .127837    -1.86   0.205    -.7873049    .3127716
         21  |  -.2912697   .1841175    -1.58   0.254    -1.083464    .5009242
         22  |  -.4706818   .1930221    -2.44   0.135    -1.301189    .3598254
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 4 revolutions and 15 matched cases

. * Successful urban civic vs. matched cases
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =        748

Group variable: diffid                          Number of groups  =         68
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.5353
                                                Largest FMI       =     0.3270
                                                Complete DF       =         20
DF adjustment:   Small sample                   DF:     min       =      12.21
                                                        avg       =      15.16
                                                        max       =      17.77
Model F test:       Equal FMI                   F(  20,   15.8)   =       2.81
Within VCE type:       Robust                   Prob > F          =     0.0207

                                (Within VCE adjusted for 21 clusters in revid)
------------------------------------------------------------------------------
statecapac~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   .0489014   .0413699     1.18   0.253    -.0380988    .1359016
          1  |   .0598749   .0309153     1.94   0.069    -.0052524    .1250022
          3  |   -.002011   .0544626    -0.04   0.971    -.1204485    .1164266
          4  |  -.0345312   .0619528    -0.56   0.587    -.1685766    .0995142
          5  |   .0349392   .0583834     0.60   0.560    -.0913287     .161207
          6  |    .024823   .0635157     0.39   0.702    -.1108369    .1604829
          7  |   .0777137   .0604599     1.29   0.217    -.0504312    .2058585
          8  |   .1007139   .0686242     1.47   0.162     -.044793    .2462208
          9  |   .1081574   .0751988     1.44   0.170    -.0512192    .2675341
         10  |   .0988759   .0785835     1.26   0.227    -.0678786    .2656303
             |
  revny#year |
       1  0  |  -.0838774   .0710777    -1.18   0.254    -.2333463    .0655914
       1  1  |   -.087006   .0488737    -1.78   0.093    -.1900323    .0160203
       1  3  |  -.1598128   .0599538    -2.67   0.020    -.2898069   -.0298187
       1  4  |  -.0638352      .1051    -0.61   0.553     -.287463    .1597925
       1  5  |   -.137622   .1099138    -1.25   0.230    -.3723294    .0970854
       1  6  |  -.1116067    .110574    -1.01   0.328    -.3466428    .1234295
       1  7  |  -.1310159   .1112197    -1.18   0.259    -.3704841    .1084523
       1  8  |  -.1574965   .1296928    -1.21   0.245    -.4363618    .1213689
       1  9  |  -.1847471   .1338072    -1.38   0.188    -.4703687    .1008745
       1 10  |  -.1442125   .1404148    -1.03   0.321    -.4447739    .1563489
             |
       _cons |  -.0138148   .0353415    -0.39   0.701    -.0881367    .0605072
-------------+----------------------------------------------------------------
     sigma_u |  .70717861
     sigma_e |  .22645359
         rho |  .90699523   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =        748
                                                Average RVI       =    10.0069
                                                Largest FMI       =     0.5244
                                                Complete DF       =         20
DF adjustment:   Small sample                   DF:     min       =       8.60
                                                        avg       =      14.10
Within VCE type: Delta-method                           max       =      18.10

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0350867   .0615988     0.57   0.576    -.0942769    .1644503
          2  |   .0460601   .0516644     0.89   0.384    -.0624696    .1545899
          3  |  -.0138148   .0353415    -0.39   0.701    -.0881367    .0605072
          4  |  -.0158257    .049332    -0.32   0.754    -.1244261    .0927746
          5  |  -.0483459   .0551278    -0.88   0.399    -.1697253    .0730334
          6  |   .0211244   .0531508     0.40   0.698    -.0954382     .137687
          7  |   .0110082   .0530774     0.21   0.839    -.1036573    .1256738
          8  |   .0638989   .0533095     1.20   0.249    -.0494312    .1772291
          9  |   .0868992   .0642063     1.35   0.195    -.0493101    .2231084
         10  |   .0943427   .0694341     1.36   0.193    -.0528961    .2415814
         11  |   .0850611   .0723084     1.18   0.257    -.0682382    .2383604
         12  |  -.0487907   .0550002    -0.89   0.387    -.1643154    .0667339
         13  |  -.0409458   .0404118    -1.01   0.324    -.1258884    .0439968
         14  |  -.0138148   .0353415    -0.39   0.701    -.0881367    .0605072
         15  |  -.1756386   .0506009    -3.47   0.006    -.2884247   -.0628524
         16  |  -.1121812   .0911987    -1.23   0.237    -.3060314     .081669
         17  |  -.1164976   .0775405    -1.50   0.158    -.2844783    .0514831
         18  |  -.1005985   .0840285    -1.20   0.253    -.2825011    .0813042
         19  |   -.067117   .0779028    -0.86   0.410    -.2417868    .1075528
         20  |  -.0705973   .0878225    -0.80   0.443    -.2706801    .1294855
         21  |  -.0904045   .0848374    -1.07   0.308    -.2755065    .0946976
         22  |  -.0591514   .0924343    -0.64   0.534    -.2600646    .1417618
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 21 revolutions and 47 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 11.4 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       251
Group variable: diffid                          Number of groups   =        25

R-sq:  within  = 0.1446                         Obs per group: min =         7
       between = 0.0411                                        avg =      10.0
       overall = 0.0004                                        max =        11

                                                F(5,5)             =         .
corr(u_i, Xb)  = -0.1424                        Prob > F           =         .

                                  (Std. Err. adjusted for 6 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
statecapac~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.1199236   .0252679    -4.75   0.005    -.1848769   -.0549703
          1  |  -.0267319   .0195684    -1.37   0.230    -.0770342    .0235703
          3  |   .0293231   .0310731     0.94   0.389    -.0505528     .109199
          4  |   .0729304   .0553913     1.32   0.245    -.0694574    .2153183
          5  |   .1088128   .0707368     1.54   0.185    -.0730219    .2906476
          6  |   .0967443   .0663617     1.46   0.205     -.073844    .2673325
          7  |    .103083   .0726221     1.42   0.215     -.083598     .289764
          8  |   .1053727   .0730708     1.44   0.209    -.0824617    .2932071
          9  |   .1068888   .0916237     1.17   0.296    -.1286375     .342415
         10  |   .0910044   .1068163     0.85   0.433    -.1835757    .3655845
             |
  revny#year |
       1  0  |  -.0631628   .1312542    -0.48   0.651    -.4005626    .2742369
       1  1  |  -.0637528   .0802505    -0.79   0.463    -.2700433    .1425377
       1  3  |  -.2730678   .1924177    -1.42   0.215    -.7676933    .2215576
       1  4  |  -.4017309   .2193415    -1.83   0.127    -.9655661    .1621044
       1  5  |   -.319297   .3815381    -0.84   0.441    -1.300072    .6614779
       1  6  |  -.0703327    .175665    -0.40   0.705    -.5218939    .3812285
       1  7  |  -.1217493   .1890721    -0.64   0.548    -.6077745    .3642759
       1  8  |  -.0467865   .1993805    -0.23   0.824    -.5593105    .4657374
       1  9  |  -.0426811    .192923    -0.22   0.834    -.5386053    .4532432
       1 10  |   -.138702    .241312    -0.57   0.590    -.7590142    .4816101
             |
       _cons |  -.3798762   .0996512    -3.81   0.012    -.6360377   -.1237147
-------------+----------------------------------------------------------------
     sigma_u |  .66339212
     sigma_e |  .28495681
         rho |  .84423168   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        251
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -.4997998   .1240206    -4.03   0.000    -.7428756    -.256724
       0  1  |  -.4066081   .1142685    -3.56   0.000    -.6305703   -.1826459
       0  2  |  -.3798762   .0996512    -3.81   0.000    -.5751889   -.1845635
       0  3  |  -.3505531   .0762418    -4.60   0.000    -.4999843   -.2011219
       0  4  |  -.3069458   .0837646    -3.66   0.000    -.4711213   -.1427702
       0  5  |  -.2710633    .058015    -4.67   0.000    -.3847707    -.157356
       0  6  |  -.2831319   .0597928    -4.74   0.000    -.4003237   -.1659401
       0  7  |  -.2767932   .0576648    -4.80   0.000    -.3898141   -.1637723
       0  8  |  -.2745035   .0786747    -3.49   0.000     -.428703    -.120304
       0  9  |  -.2729874   .0733081    -3.72   0.000    -.4166686   -.1293062
       0 10  |  -.2888718   .1067059    -2.71   0.007    -.4980115    -.079732
       1  0  |  -.5629626   .2236369    -2.52   0.012    -1.001283   -.1246424
       1  1  |  -.4703609   .1791453    -2.63   0.009    -.8214792   -.1192426
       1  2  |  -.3798762   .0996512    -3.81   0.000    -.5751889   -.1845635
       1  3  |  -.6236209   .1850711    -3.37   0.001    -.9863535   -.2608883
       1  4  |  -.7086766   .1596481    -4.44   0.000    -1.021581   -.3957721
       1  5  |  -.5903603   .3268273    -1.81   0.071     -1.23093    .0502093
       1  6  |  -.3534646   .1216412    -2.91   0.004    -.5918769   -.1150523
       1  7  |  -.3985425   .1424235    -2.80   0.005    -.6776874   -.1193976
       1  8  |  -.3212901   .1547045    -2.08   0.038    -.6245053   -.0180748
       1  9  |  -.3156685   .1475068    -2.14   0.032    -.6047764   -.0265605
       1 10  |  -.4275738   .1525091    -2.80   0.005    -.7264862   -.1286614
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 6 revolutions and 19 matched cases

. ttest $yvar if success==1 & leftist==1 & year>4 & year<=10, by(revny)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     114   -.4697629    .0552359    .5897582   -.5791953   -.3603306
       1 |      36   -.2107216    .1282379    .7694275   -.4710584    .0496152
---------+--------------------------------------------------------------------
combined |     150    -.407593    .0526096    .6443333   -.5115503   -.3036358
---------+--------------------------------------------------------------------
    diff |           -.2590413     .121751               -.4996362   -.0184465
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.1276
Ho: diff = 0                                     degrees of freedom =      148

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0175         Pr(|T| > |t|) = 0.0350          Pr(T > t) = 0.9825

. xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       708
Group variable: diffid                          Number of groups   =        78

R-sq:  within  = 0.0691                         Obs per group: min =         2
       between = 0.0058                                        avg =       9.1
       overall = 0.0000                                        max =        11

                                                F(20,23)           =     87.27
corr(u_i, Xb)  = -0.0842                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 24 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
statecapac~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   .0089381   .0390779     0.23   0.821    -.0719007    .0897769
          1  |   .0355401   .0299685     1.19   0.248    -.0264546    .0975347
          3  |   .0520394   .0477766     1.09   0.287    -.0467941    .1508729
          4  |   .0167516     .04617     0.36   0.720    -.0787582    .1122614
          5  |   .0780818   .0493549     1.58   0.127    -.0240167    .1801803
          6  |   .0797999   .0630706     1.27   0.218    -.0506715    .2102713
          7  |   .0920983    .061733     1.49   0.149    -.0356061    .2198027
          8  |   .1444504    .068762     2.10   0.047     .0022053    .2866956
          9  |    .162811   .0760731     2.14   0.043     .0054418    .3201802
         10  |   .1504337   .0766976     1.96   0.062    -.0082273    .3090947
             |
  revny#year |
       1  0  |  -.0621938   .0662471    -0.94   0.358    -.1992362    .0748487
       1  1  |  -.0809508    .049989    -1.62   0.119    -.1843609    .0224593
       1  3  |  -.2115167   .0469968    -4.50   0.000     -.308737   -.1142964
       1  4  |  -.1185767   .1059136    -1.12   0.274    -.3376757    .1005222
       1  5  |  -.1339842   .0735259    -1.82   0.081    -.2860841    .0181157
       1  6  |  -.1282872   .0809716    -1.58   0.127    -.2957897    .0392152
       1  7  |   -.094871   .0706743    -1.34   0.193     -.241072      .05133
       1  8  |  -.1547855   .0940053    -1.65   0.113    -.3492503    .0396794
       1  9  |  -.1891542    .103563    -1.83   0.081    -.4033906    .0250822
       1 10  |  -.1320369   .0939633    -1.41   0.173    -.3264147    .0623409
             |
       _cons |  -.1228426   .0329348    -3.73   0.001    -.1909734   -.0547117
-------------+----------------------------------------------------------------
     sigma_u |  .71676614
     sigma_e |  .19731867
         rho |  .92955405   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        708
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -.1139045   .0534634    -2.13   0.033    -.2186908   -.0091181
       0  1  |  -.0873025   .0443501    -1.97   0.049    -.1742271   -.0003779
       0  2  |  -.1228426   .0329348    -3.73   0.000    -.1873936   -.0582915
       0  3  |  -.0708031    .042699    -1.66   0.097    -.1544916    .0128853
       0  4  |   -.106091   .0407986    -2.60   0.009    -.1860549   -.0261271
       0  5  |  -.0447608   .0374075    -1.20   0.231    -.1180781    .0285566
       0  6  |  -.0430427   .0450617    -0.96   0.339     -.131362    .0452767
       0  7  |  -.0307443   .0448686    -0.69   0.493    -.1186852    .0571966
       0  8  |   .0216079   .0546946     0.40   0.693    -.0855916    .1288074
       0  9  |   .0399684   .0597276     0.67   0.503    -.0770955    .1570324
       0 10  |   .0275911   .0581136     0.47   0.635    -.0863094    .1414917
       1  0  |  -.1760982    .049699    -3.54   0.000    -.2735065   -.0786899
       1  1  |  -.1682533   .0369242    -4.56   0.000    -.2406233   -.0958833
       1  2  |  -.1228426   .0329348    -3.73   0.000    -.1873936   -.0582915
       1  3  |  -.2823198   .0354821    -7.96   0.000    -.3518635   -.2127761
       1  4  |  -.2246677   .0983266    -2.28   0.022    -.4173842   -.0319512
       1  5  |  -.1787449   .0439514    -4.07   0.000    -.2648882   -.0926017
       1  6  |  -.1713299   .0548137    -3.13   0.002    -.2787628    -.063897
       1  7  |  -.1256153   .0410463    -3.06   0.002    -.2060646   -.0451659
       1  8  |  -.1331776   .0528443    -2.52   0.012    -.2367505   -.0296047
       1  9  |  -.1491858   .0637458    -2.34   0.019    -.2741252   -.0242464
       1 10  |  -.1044458   .0685865    -1.52   0.128    -.2388729    .0299813
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 24 revolutions and 54 matched cases

. ttest $yvar if success==1 & urbancivic==1 & year>4 & year<=10, by(revny)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |     271   -.1686725     .043696    .7193271   -.2547007   -.0826443
       1 |     103    -.241073     .074826    .7594009     -.38949    -.092656
---------+--------------------------------------------------------------------
combined |     374   -.1886117    .0377615    .7302724   -.2628638   -.1143596
---------+--------------------------------------------------------------------
    diff |            .0724005    .0845615               -.0938781    .2386791
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   0.8562
Ho: diff = 0                                     degrees of freedom =      372

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.8038         Pr(|T| > |t|) = 0.3924          Pr(T > t) = 0.1962

. 
. * ======================================================
. * ECONOMIC GROWTH--MATCHED SAMPLES, DATA FOR FIGURE 9.4
. * ======================================================
. * Matched cases (successful vs. failed revolutions)
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "gdpa1990index"

. quietly: chp9matchmultimp

. * Failed revolutions vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==0 [pweight=freqwt], 
> fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =      2,332

Group variable: diffid                          Number of groups  =        212
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0377
                                                Largest FMI       =     0.0377
                                                Complete DF       =         61
DF adjustment:   Small sample                   DF:     min       =      56.55
                                                        avg       =      58.16
                                                        max       =      59.09
Model F test:       Equal FMI                   F(  20,   58.9)   =       8.08
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 62 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -5.076296   .9890938    -5.13   0.000    -7.055963   -3.096629
          1  |  -1.985931   .5881864    -3.38   0.001    -3.163208   -.8086543
          3  |   8.066459   2.143081     3.76   0.000     3.777948    12.35497
          4  |   10.48338   2.171708     4.83   0.000     6.137537    14.82923
          5  |   12.15575   2.272405     5.35   0.000      7.60841    16.70309
          6  |   14.83552   2.428474     6.11   0.000     9.976067    19.69498
          7  |   17.40873   2.579417     6.75   0.000     12.24649    22.57097
          8  |   20.24163   2.740839     7.39   0.000       14.756    25.72726
          9  |   22.88374   2.972338     7.70   0.000     16.93481    28.83267
         10  |   24.99704    3.14818     7.94   0.000     18.69668     31.2974
             |
  revny#year |
       1  0  |   2.294727   1.528443     1.50   0.139    -.7651013    5.354555
       1  1  |  -.2717305   .7656271    -0.35   0.724    -1.804649    1.261188
       1  3  |  -8.626884   2.004394    -4.30   0.000    -12.63945   -4.614318
       1  4  |  -7.955355   2.190543    -3.63   0.001     -12.3426   -3.568114
       1  5  |  -6.380778   2.589374    -2.46   0.017    -11.56609    -1.19547
       1  6  |  -6.429879   3.011269    -2.14   0.037    -12.45856   -.4012029
       1  7  |   -5.92674   3.454079    -1.72   0.092    -12.84089    .9874135
       1  8  |  -3.707734   3.746832    -0.99   0.326    -11.20742    3.791947
       1  9  |  -3.282946   3.863184    -0.85   0.399    -11.01601    4.450116
       1 10  |  -3.428246   3.956548    -0.87   0.390    -11.34728    4.490784
             |
       _cons |        100   1.767795    56.57   0.000     96.46277    103.5372
-------------+----------------------------------------------------------------
     sigma_u |  18.714362
     sigma_e |  15.125817
         rho |  .60486468   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =      2,332
                                                Average RVI       =     2.1113
                                                Largest FMI       =     0.0547
                                                Complete DF       =         61
DF adjustment:   Small sample                   DF:     min       =      55.13
                                                        avg       =      57.98
Within VCE type: Delta-method                           max       =      59.09

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    94.9237   2.059836    46.08   0.000     90.80187    99.04554
          2  |   98.01407   1.847941    53.04   0.000     94.31637    101.7118
          3  |        100   1.767795    56.57   0.000     96.46277    103.5372
          4  |   108.0665   1.484281    72.81   0.000      105.096    111.0369
          5  |   110.4834    1.34914    81.89   0.000     107.7832    113.1836
          6  |   112.1558   1.314493    85.32   0.000     109.5248    114.7867
          7  |   114.8355   1.491146    77.01   0.000     111.8514    117.8196
          8  |   117.4087   1.581239    74.25   0.000      114.243    120.5745
          9  |   120.2416   1.699614    70.75   0.000     116.8383     123.645
         10  |   122.8837   1.935569    63.49   0.000     119.0083    126.7592
         11  |    124.997   2.122472    58.89   0.000     120.7484    129.2457
         12  |   97.21843   2.386869    40.73   0.000     92.44183     101.995
         13  |   97.74234   2.006118    48.72   0.000     93.72799    101.7567
         14  |        100   1.767795    56.57   0.000     96.46277    103.5372
         15  |   99.43958   1.546529    64.30   0.000     96.34337    102.5358
         16  |    102.528   1.354523    75.69   0.000     99.81365    105.2424
         17  |    105.775   1.687721    62.67   0.000      102.394    109.1559
         18  |   108.4056   1.984063    54.64   0.000     104.4322    112.3791
         19  |    111.482   2.372482    46.99   0.000     106.7334    116.2306
         20  |   116.5339   2.655328    43.89   0.000     111.2196    121.8482
         21  |   119.6008   2.794442    42.80   0.000     114.0073    125.1943
         22  |   121.5688   2.908797    41.79   0.000     115.7459    127.3917
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 62 revolutions and 150 matched cases

. * Results loaded into MS Excel and graphed
. * Successful revolutions vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 [pweight=freqwt], 
> fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =      2,255

Group variable: diffid                          Number of groups  =        205
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1472
                                                Largest FMI       =     0.1294
                                                Complete DF       =         58
DF adjustment:   Small sample                   DF:     min       =      45.57
                                                        avg       =      52.19
                                                        max       =      56.10
Model F test:       Equal FMI                   F(  20,   55.1)   =       5.67
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 59 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -3.597883    .820408    -4.39   0.000    -5.247616   -1.948149
          1  |  -2.173357   .4547923    -4.78   0.000    -3.085444   -1.261271
          3  |   1.643821   .8616756     1.91   0.063    -.0906124    3.378255
          4  |    3.20263   1.317098     2.43   0.019     .5598761    5.845383
          5  |   5.469077   1.764396     3.10   0.003       1.9293    9.008855
          6  |   7.937022   2.218457     3.58   0.001     3.486931    12.38711
          7  |   11.16627   2.508665     4.45   0.000     6.134452    16.19809
          8  |   13.99499   2.875774     4.87   0.000       8.2269    19.76308
          9  |   17.38622   3.289109     5.29   0.000     10.79014     23.9823
         10  |   20.94226   3.683137     5.69   0.000     13.55639    28.32814
             |
  revny#year |
       1  0  |   2.542696   1.405491     1.81   0.077    -.2871321    5.372524
       1  1  |   1.844534   .8282619     2.23   0.030       .18365    3.505418
       1  3  |   -7.74092   2.180221    -3.55   0.001    -12.10977   -3.372066
       1  4  |  -8.695848   2.291635    -3.79   0.000    -13.28848   -4.103211
       1  5  |  -9.128577   2.503517    -3.65   0.001    -14.14762   -4.109534
       1  6  |  -9.448509    2.83255    -3.34   0.002    -15.12962   -3.767394
       1  7  |  -9.884099   2.785755    -3.55   0.001     -15.4773   -4.290897
       1  8  |  -11.11882   3.196515    -3.48   0.001     -17.5374   -4.700239
       1  9  |  -12.15464   3.609265    -3.37   0.001    -19.39823   -4.911056
       1 10  |  -13.68166    4.16186    -3.29   0.002     -22.0291   -5.334219
             |
       _cons |        100    1.38534    72.18   0.000     97.22494    102.7751
-------------+----------------------------------------------------------------
     sigma_u |  13.227109
     sigma_e |  12.865138
         rho |   .5138701   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =      2,255
                                                Average RVI       =     4.0410
                                                Largest FMI       =     0.1168
                                                Complete DF       =         58
DF adjustment:   Small sample                   DF:     min       =      46.79
                                                        avg       =      52.57
Within VCE type: Delta-method                           max       =      56.10

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   96.40212    1.82148    52.93   0.000     92.75152    100.0527
          2  |   97.82664   1.551084    63.07   0.000     94.71932     100.934
          3  |        100    1.38534    72.18   0.000     97.22494    102.7751
          4  |   101.6438   1.113452    91.29   0.000     99.40816    103.8795
          5  |   103.2026    1.07395    96.10   0.000     101.0452    105.3601
          6  |   105.4691   1.197104    88.10   0.000     103.0605    107.8776
          7  |    107.937    1.47536    73.16   0.000     104.9693    110.9047
          8  |   111.1663   1.626029    68.37   0.000     107.8954    114.4371
          9  |    113.995   1.982392    57.50   0.000     110.0102    117.9798
         10  |   117.3862   2.422125    48.46   0.000     112.5222    122.2502
         11  |   120.9423   2.827831    42.77   0.000     115.2657    126.6188
         12  |   98.94481    1.99657    49.56   0.000     94.94292    102.9467
         13  |   99.67118   1.690269    58.97   0.000     96.28499    103.0574
         14  |        100    1.38534    72.18   0.000     97.22494    102.7751
         15  |    93.9029   1.713675    54.80   0.000     90.46884    97.33696
         16  |   94.50678   1.634495    57.82   0.000     91.23141    97.78215
         17  |    96.3405   1.608512    59.89   0.000     93.11623    99.56477
         18  |   98.48851   1.768104    55.70   0.000     94.94388    102.0331
         19  |   101.2822   1.814388    55.82   0.000     97.64367    104.9207
         20  |   102.8762   1.898555    54.19   0.000     99.06669    106.6857
         21  |   105.2316   2.029825    51.84   0.000     101.1606    109.3026
         22  |   107.2606   2.419562    44.33   0.000     102.4094    112.1118
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 59 revolutions and 146 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 5.8 percent of observations

. * Complete case sample as robustness test
. clear

. use matcheddiffindifflong.dta, clear

. xtreg $yvar i.revny##ib(2).year if success==0 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =      2265
Group variable: diffid                          Number of groups   =       212

R-sq:  within  = 0.2792                         Obs per group: min =         1
       between = 0.0089                                        avg =      10.7
       overall = 0.1146                                        max =        11

                                                F(20,61)           =      8.78
corr(u_i, Xb)  = -0.0080                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 62 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -5.031912   .9900469    -5.08   0.000    -7.011633   -3.052191
          1  |  -1.971844   .5888828    -3.35   0.001    -3.149388   -.7943001
          3  |   8.040806   2.164221     3.72   0.000     3.713179    12.36843
          4  |   10.50619    2.18714     4.80   0.000     6.132736    14.87965
          5  |   12.22487   2.272458     5.38   0.000     7.680814    16.76893
          6  |   15.00213   2.441314     6.15   0.000     10.12042    19.88384
          7  |   17.58778   2.584202     6.81   0.000     12.42035    22.75521
          8  |   20.46794   2.727811     7.50   0.000     15.01334    25.92253
          9  |   22.82941   3.050795     7.48   0.000     16.72897    28.92985
         10  |   24.85155   3.268069     7.60   0.000     18.31665    31.38646
             |
  revny#year |
       1  0  |   2.271421   1.523408     1.49   0.141    -.7748206    5.317663
       1  1  |  -.2778345   .7587976    -0.37   0.716    -1.795144    1.239475
       1  3  |  -8.644305   2.000433    -4.32   0.000    -12.64442   -4.644192
       1  4  |   -8.00617   2.157447    -3.71   0.000    -12.32025   -3.692089
       1  5  |  -6.446684   2.546016    -2.53   0.014    -11.53776    -1.35561
       1  6  |  -6.836805     2.9908    -2.29   0.026    -12.81728   -.8563309
       1  7  |  -6.511324   3.484629    -1.87   0.066    -13.47927    .4566223
       1  8  |   -4.23271   3.804617    -1.11   0.270    -11.84051    3.375093
       1  9  |  -3.483195   3.954662    -0.88   0.382    -11.39103    4.424639
       1 10  |  -3.887198   4.061143    -0.96   0.342    -12.00795     4.23356
             |
       _cons |   99.95995   1.781974    56.10   0.000     96.39667    103.5232
-------------+----------------------------------------------------------------
     sigma_u |  18.522611
     sigma_e |  15.210867
         rho |  .59723661   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year

Adjusted predictions                            Number of obs     =      2,265
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   94.92803   2.070771    45.84   0.000      90.8694    98.98667
       0  1  |    97.9881   1.860048    52.68   0.000     94.34247    101.6337
       0  2  |          .  (not estimable)
       0  3  |   108.0008   1.489346    72.52   0.000     105.0817    110.9198
       0  4  |   110.4661   1.359103    81.28   0.000     107.8023    113.1299
       0  5  |   112.1848   1.312759    85.46   0.000     109.6119    114.7578
       0  6  |   114.9621   1.495544    76.87   0.000     112.0309    117.8933
       0  7  |   117.5477   1.569561    74.89   0.000     114.4714     120.624
       0  8  |   120.4279   1.664235    72.36   0.000      117.166    123.6897
       0  9  |   122.7894   1.993947    61.58   0.000     118.8813    126.6974
       0 10  |   124.8115   2.229996    55.97   0.000     120.4408    129.1822
       1  0  |   97.19945   2.397064    40.55   0.000      92.5013    101.8976
       1  1  |   97.71027   2.019175    48.39   0.000     93.75276    101.6678
       1  2  |          .  (not estimable)
       1  3  |   99.35645   1.548094    64.18   0.000     96.32224    102.3907
       1  4  |     102.46   1.328865    77.10   0.000     99.85544    105.0645
       1  5  |   105.7381   1.662345    63.61   0.000       102.48    108.9963
       1  6  |   108.1253   1.982166    54.55   0.000     104.2403    112.0102
       1  7  |   111.0364   2.443526    45.44   0.000     106.2472    115.8256
       1  8  |   116.1952   2.752849    42.21   0.000     110.7997    121.5907
       1  9  |   119.3062   2.887262    41.32   0.000     113.6472    124.9651
       1 10  |   120.9243    2.99137    40.42   0.000     115.0613    126.7873
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 62 revolutions and 150 matched cases

. xtreg $yvar i.revny##ib(2).year if success==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =      2146
Group variable: diffid                          Number of groups   =       205

R-sq:  within  = 0.2083                         Obs per group: min =         1
       between = 0.0302                                        avg =      10.5
       overall = 0.0877                                        max =        11

                                                F(20,58)           =      7.62
corr(u_i, Xb)  = -0.0382                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 59 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -3.273165   .8254694    -3.97   0.000    -4.925522   -1.620809
          1  |  -2.114007   .4411302    -4.79   0.000    -2.997025   -1.230989
          3  |   1.637565   .7910502     2.07   0.043     .0541058    3.221024
          4  |   3.135128   1.290289     2.43   0.018     .5523335    5.717923
          5  |   5.372326   1.741874     3.08   0.003     1.885586    8.859066
          6  |    7.92053   2.265922     3.50   0.001     3.384794    12.45627
          7  |   11.17685   2.572319     4.35   0.000     6.027791     16.3259
          8  |   14.08852   2.987417     4.72   0.000     8.108559    20.06849
          9  |   17.83397   3.495963     5.10   0.000     10.83604    24.83191
         10  |   21.70015   3.925603     5.53   0.000      13.8422     29.5581
             |
  revny#year |
       1  0  |   2.926187   1.258163     2.33   0.024     .4077006    5.444673
       1  1  |   1.806588   .8094492     2.23   0.030     .1862988    3.426876
       1  3  |  -7.771652   2.173061    -3.58   0.001    -12.12151   -3.421797
       1  4  |  -8.756124   2.259692    -3.87   0.000    -13.27939   -4.232858
       1  5  |  -9.175603   2.438309    -3.76   0.000    -14.05641   -4.294798
       1  6  |  -9.660897   2.771436    -3.49   0.001    -15.20853   -4.113264
       1  7  |  -10.08027   2.682069    -3.76   0.000    -15.44901    -4.71152
       1  8  |  -10.87054   2.921638    -3.72   0.000    -16.71883   -5.022243
       1  9  |  -12.10754   3.438268    -3.52   0.001    -18.98998   -5.225096
       1 10  |  -13.83209   4.082677    -3.39   0.001    -22.00446   -5.659726
             |
       _cons |   100.0268    1.42571    70.16   0.000     97.17293    102.8807
-------------+----------------------------------------------------------------
     sigma_u |  12.811402
     sigma_e |  12.699572
         rho |  .50438349   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year

Adjusted predictions                            Number of obs     =      2,146
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   96.75364   1.860146    52.01   0.000     93.10782    100.3995
       0  1  |    97.9128   1.591283    61.53   0.000     94.79394    101.0317
       0  2  |          .  (not estimable)
       0  3  |   101.6644   1.083702    93.81   0.000     99.54035    103.7884
       0  4  |   103.1619   1.021329   101.01   0.000     101.1602    105.1637
       0  5  |   105.3991   1.113686    94.64   0.000     103.2163    107.5819
       0  6  |   107.9473   1.423825    75.82   0.000     105.1567     110.738
       0  7  |   111.2037   1.569161    70.87   0.000     108.1282    114.2792
       0  8  |   114.1153   1.976457    57.74   0.000     110.2415    117.9891
       0  9  |   117.8608   2.518119    46.81   0.000     112.9254    122.7962
       0 10  |    121.727   2.972195    40.96   0.000     115.9016    127.5524
       1  0  |   99.67982   1.952571    51.05   0.000     95.85286    103.5068
       1  1  |   99.71938   1.747718    57.06   0.000     96.29392    103.1448
       1  2  |          .  (not estimable)
       1  3  |   93.89272   1.708246    54.96   0.000     90.54462    97.24082
       1  4  |   94.40581   1.606405    58.77   0.000     91.25731     97.5543
       1  5  |   96.22352   1.559833    61.69   0.000     93.16631    99.28074
       1  6  |   98.28644   1.779704    55.23   0.000     94.79828    101.7746
       1  7  |   101.1234   1.844093    54.84   0.000     97.50903    104.7377
       1  8  |   103.2448    1.72789    59.75   0.000     99.85819    106.6314
       1  9  |   105.7532   1.907743    55.43   0.000     102.0141    109.4923
       1 10  |   107.8949   2.320069    46.51   0.000     103.3476    112.4421
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 59 revolutions and 146 matched cases

. 
. * ===================================================================
. * ECONOMIC GROWTH, SOCIAL AND URBAN CIVIC EPISODES--MATCHED SAMPLES, 
. *    FIGURES 9.5 AND 9.6
. * ===================================================================
. * Social revs. vs. urban civic revs--matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "gdpa1990index"

. quietly: chp9matchmultimp

. * Failed social vs. matched counterparts 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==0 & leftist==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        836

Group variable: diffid                          Number of groups  =         76
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1673
                                                Largest FMI       =     0.0976
                                                Complete DF       =         22
DF adjustment:   Small sample                   DF:     min       =      18.28
                                                        avg       =      19.41
                                                        max       =      20.24
Model F test:       Equal FMI                   F(  20,   19.5)   =       4.87
Within VCE type:       Robust                   Prob > F          =     0.0005

                                (Within VCE adjusted for 23 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -5.111599    1.55509    -3.29   0.004    -8.360256   -1.862942
          1  |   -1.93504   1.105846    -1.75   0.096    -4.243181    .3731017
          3  |   13.20028   4.477277     2.95   0.008     3.866387    22.53416
          4  |   15.26065   4.863403     3.14   0.005     5.121754    25.39954
          5  |    17.9359   4.991004     3.59   0.002     7.531144    28.34065
          6  |   21.02456   5.083968     4.14   0.001     10.42523    31.62389
          7  |   23.46659   5.283042     4.44   0.000     12.45208     34.4811
          8  |   25.15386   5.548708     4.53   0.000     13.58617    36.72154
          9  |    27.9571   5.911939     4.73   0.000     15.63228    40.28192
         10  |    29.9964   6.198509     4.84   0.000      17.0732     42.9196
             |
  revny#year |
       1  0  |    3.06095   1.939955     1.58   0.132    -1.010233    7.132134
       1  1  |   .9219464   1.183802     0.78   0.446     -1.56043    3.404323
       1  3  |  -10.19836   3.012154    -3.39   0.003    -16.50436   -3.892352
       1  4  |  -9.488841   3.512762    -2.70   0.014    -16.85876   -2.118924
       1  5  |  -9.923211    3.82686    -2.59   0.018    -17.95139   -1.895029
       1  6  |  -10.67996   4.138053    -2.58   0.018    -19.35086   -2.009066
       1  7  |  -11.57734   4.211949    -2.75   0.013    -20.41401   -2.740665
       1  8  |  -8.711986   4.769589    -1.83   0.084    -18.69967    1.275698
       1  9  |  -7.800836   5.023554    -1.55   0.137    -18.31789    2.716214
       1 10  |  -9.693298   5.333266    -1.82   0.085    -20.84662    1.460028
             |
       _cons |        100   2.936747    34.05   0.000     93.87871    106.1213
-------------+----------------------------------------------------------------
     sigma_u |  22.040237
     sigma_e |  15.144915
         rho |  .67926797   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        836
                                                Average RVI       =     3.0841
                                                Largest FMI       =     0.2027
                                                Complete DF       =         22
DF adjustment:   Small sample                   DF:     min       =      15.70
                                                        avg       =      19.02
Within VCE type: Delta-method                           max       =      20.24

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    94.8884   3.496903    27.13   0.000     87.59655    102.1802
          2  |   98.06496    3.15223    31.11   0.000     91.49348    104.6364
          3  |        100   2.936747    34.05   0.000     93.87871    106.1213
          4  |   113.2003   2.543523    44.51   0.000     107.8958    118.5047
          5  |   115.2606   2.615985    44.06   0.000     109.8047    120.7166
          6  |   117.9359   2.591004    45.52   0.000     112.5321    123.3397
          7  |   121.0246   2.747769    44.04   0.000     115.2926    126.7566
          8  |   123.4666   2.752122    44.86   0.000     117.7249    129.2083
          9  |   125.1539   3.070627    40.76   0.000     118.7497     131.558
         10  |   127.9571   3.514969    36.40   0.000      120.627    135.2872
         11  |   129.9964   3.864337    33.64   0.000     121.9365    138.0563
         12  |   97.94935    3.31487    29.55   0.000     91.02893    104.8698
         13  |   98.98691   3.074689    32.19   0.000      92.5744    105.3994
         14  |        100   2.936747    34.05   0.000     93.87871    106.1213
         15  |   103.0019   2.279051    45.20   0.000     98.22284     107.781
         16  |   105.7718   1.963956    53.86   0.000     101.6021    109.9415
         17  |   108.0127   2.216622    48.73   0.000     103.3063    112.7191
         18  |   110.3446   2.352049    46.91   0.000     105.3626    115.3266
         19  |   111.8893   2.387016    46.87   0.000     106.8351    116.9434
         20  |   116.4419   2.992776    38.91   0.000     110.1497     122.734
         21  |   120.1563   3.585943    33.51   0.000     112.6379    127.6746
         22  |   120.3031   3.418402    35.19   0.000     113.1436    127.4626
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 23 revolutions and 53 matched cases

. * Results loaded into MS Excel and graphed
. * Successful social vs. matched counterparts 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.5783
                                                Largest FMI       =     0.3229
                                                Complete DF       =          8
                                                DF:     min       =       4.73
                                                        avg       =       5.96
DF adjustment:   Small sample                           max       =       6.55
                                                F(  17,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -5.349538    1.43098    -3.74   0.009    -8.843667   -1.855409
          1  |  -2.762325    1.01157    -2.73   0.033    -5.214542   -.3101076
          3  |   5.542415   2.505683     2.21   0.077    -.8571711      11.942
          4  |   9.840961   3.064522     3.21   0.021     2.155705    17.52622
          5  |   12.35079   3.487705     3.54   0.014     3.665067    21.03651
          6  |   15.29486   3.693852     4.14   0.007     6.062832     24.5269
          7  |   14.78415   4.041295     3.66   0.012     4.715398    24.85291
          8  |   14.95915   4.128856     3.62   0.014     4.537971    25.38034
          9  |   17.60559    4.47611     3.93   0.010     6.189072     29.0221
         10  |   19.86866   4.214084     4.71   0.006     8.846248    30.89107
             |
  revny#year |
       1  0  |   5.467693   2.380722     2.30   0.059    -.2762765    11.21166
       1  1  |   4.847628   2.517079     1.93   0.099    -1.198915    10.89417
       1  3  |  -13.90867   8.589948    -1.62   0.153    -34.58989    6.772542
       1  4  |  -19.56279   9.832714    -1.99   0.090    -43.22477    4.099185
       1  5  |  -19.94526   10.09323    -1.98   0.092    -44.24041    4.349883
       1  6  |  -18.96574    9.62394    -1.97   0.093     -42.1599    4.228424
       1  7  |  -13.92359   9.138488    -1.52   0.176     -35.9755    8.128324
       1  8  |  -10.70503   9.724046    -1.10   0.311    -34.19438    12.78431
       1  9  |  -11.29643   10.61873    -1.06   0.326    -36.97323    14.38037
       1 10  |  -12.17958   11.42878    -1.07   0.326    -39.80963    15.45046
             |
       _cons |        100   3.298063    30.32   0.000     92.09018    107.9098
-------------+----------------------------------------------------------------
     sigma_u |  12.977964
     sigma_e |  12.233465
         rho |  .52950451   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =  1077.7756
                                                Largest FMI       =     0.2535
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       5.18
                                                        avg       =       6.22
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   94.65046   2.392866    39.56   0.000     88.87756    100.4234
          2  |   97.23768   3.217204    30.22   0.000     89.51417    104.9612
          3  |        100   3.298063    30.32   0.000     92.09018    107.9098
          4  |   105.5424   3.617015    29.18   0.000     96.64725    114.4376
          5  |    109.841   4.076956    26.94   0.000     99.84165    119.8403
          6  |   112.3508   4.466343    25.15   0.000     101.4125     123.289
          7  |   115.2949   4.021394    28.67   0.000     105.3224    125.2673
          8  |   114.7842   4.161979    27.58   0.000     104.4424     125.126
          9  |   114.9592   4.563401    25.19   0.000     103.5729    126.3454
         10  |   117.6056   5.162016    22.78   0.000      104.689    130.5221
         11  |   119.8687   4.838111    24.78   0.000     107.5605    132.1768
         12  |   100.1182   3.539397    28.29   0.000     91.62954    108.6068
         13  |   102.0853    4.29864    23.75   0.000     91.77578    112.3948
         14  |        100   3.298063    30.32   0.000     92.09018    107.9098
         15  |   91.63374   5.675859    16.14   0.000      78.0212    105.2463
         16  |   90.27817    6.51631    13.85   0.000     74.64995    105.9064
         17  |   92.40553   6.521013    14.17   0.000     76.76603     108.045
         18  |   96.32913   6.204431    15.53   0.000     81.44889    111.2094
         19  |   100.8606   5.481236    18.40   0.000     87.71479    114.0063
         20  |   104.2541   5.834057    17.87   0.000     90.26216    118.2461
         21  |   106.3092   6.342657    16.76   0.000     91.09741    121.5209
         22  |   107.6891   7.460089    14.44   0.000     89.79737    125.5808
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Failed urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==0 & urbancivic==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        418

Group variable: diffid                          Number of groups  =         38
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          9
                                                DF:     min       =       7.50
                                                        avg       =       7.50
DF adjustment:   Small sample                           max       =       7.50
                                                F(   9,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 10 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -6.420183    1.61025    -3.99   0.005    -10.17696   -2.663407
          1  |  -3.195277   .9252625    -3.45   0.010    -5.353951   -1.036603
          3  |   1.656634   1.141306     1.45   0.187    -1.006079    4.319347
          4  |   4.535625   1.959155     2.32   0.051    -.0351612    9.106412
          5  |   7.330144     2.8857     2.54   0.037     .5976917     14.0626
          6  |   9.219765   3.451697     2.67   0.030     1.166819    17.27271
          7  |   11.07964   3.300371     3.36   0.011     3.379747    18.77954
          8  |   14.33858   3.878004     3.70   0.007     5.291041    23.38611
          9  |   17.27174    4.58786     3.76   0.006     6.568078    27.97539
         10  |    19.8754   5.463444     3.64   0.007     7.128966    32.62183
             |
  revny#year |
       1  0  |   .4422484   2.148995     0.21   0.842    -4.571442    5.455939
       1  1  |  -.5043287   1.277798    -0.39   0.704    -3.485481    2.476824
       1  3  |  -1.951914    2.84672    -0.69   0.514    -8.593424    4.689596
       1  4  |  -1.707425   6.293974    -0.27   0.793    -16.39152    12.97667
       1  5  |   1.376675   9.305784     0.15   0.886    -20.33409    23.08744
       1  6  |    5.57811   10.93911     0.51   0.625    -19.94326    31.09948
       1  7  |   9.865873   12.78546     0.77   0.464     -19.9631    39.69485
       1  8  |   11.53636   13.09313     0.88   0.406    -19.01042    42.08315
       1  9  |   12.05935   12.72811     0.95   0.373    -17.63584    41.75454
       1 10  |   10.77231   12.60306     0.85   0.419    -18.63114    40.17575
             |
       _cons |        100   5.036928    19.85   0.000     88.24865    111.7514
-------------+----------------------------------------------------------------
     sigma_u |  14.655124
     sigma_e |  16.999991
         rho |   .4263288   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        418
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          9
DF adjustment:   Small sample                   DF:     min       =       7.50
                                                        avg       =       7.50
Within VCE type: Delta-method                           max       =       7.50

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   93.57982   6.214868    15.06   0.000     79.08028    108.0793
          2  |   96.80472   5.723138    16.91   0.000     83.45242     110.157
          3  |        100   5.036928    19.85   0.000     88.24865    111.7514
          4  |   101.6566   4.273393    23.79   0.000     91.68664    111.6266
          5  |   104.5356   3.634381    28.76   0.000     96.05647    113.0148
          6  |   107.3301   2.885952    37.19   0.000     100.5971    114.0632
          7  |   109.2198   3.112085    35.10   0.000     101.9591    116.4804
          8  |   111.0796   3.357448    33.08   0.000     103.2466    118.9127
          9  |   114.3386   3.114166    36.72   0.000     107.0731     121.604
         10  |   117.2717   3.020027    38.83   0.000     110.2259    124.3176
         11  |   119.8754    3.42994    34.95   0.000     111.8732    127.8776
         12  |   94.02206   6.591052    14.27   0.000     78.64488    109.3993
         13  |   96.30039   5.855401    16.45   0.000     82.63951    109.9613
         14  |        100   5.036928    19.85   0.000     88.24865    111.7514
         15  |   99.70472   2.979528    33.46   0.000     92.75336    106.6561
         16  |   102.8282   3.342275    30.77   0.000     95.03054    110.6259
         17  |   108.7068   6.669188    16.30   0.000     93.14734    124.2663
         18  |   114.7979   8.243305    13.93   0.000     95.56592    134.0298
         19  |   120.9455   9.715786    12.45   0.000      98.2782    143.6128
         20  |   125.8749   10.44561    12.05   0.000     101.5049     150.245
         21  |   129.3311   10.44078    12.39   0.000     104.9723    153.6898
         22  |   130.6477   10.71208    12.20   0.000      105.656    155.6394
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 10 revolutions and 28 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2946
                                                Largest FMI       =     0.1466
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.46
                                                        avg       =      22.14
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.7)   =       5.15
Within VCE type:       Robust                   Prob > F          =     0.0002

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -4.513877   1.070246    -4.22   0.000    -6.726719   -2.301036
          1  |  -2.624019   .4858332    -5.40   0.000    -3.628529    -1.61951
          3  |   1.584373    .910634     1.74   0.095    -.2984555    3.467201
          4  |   3.111967   1.740949     1.79   0.087     -.487622    6.711556
          5  |   4.832891   2.526596     1.91   0.068    -.3911021    10.05688
          6  |   7.563388   3.230406     2.34   0.028     .8819009    14.24488
          7  |   11.16076   3.869954     2.88   0.008     3.156428    19.16508
          8  |   14.43775   4.481916     3.22   0.004     5.163217    23.71229
          9  |   17.96598   5.062699     3.55   0.002      7.47864    28.45333
         10  |   21.61282   5.638263     3.83   0.001     9.934608    33.29103
             |
  revny#year |
       1  0  |   1.155486   1.761164     0.66   0.519    -2.505544    4.816515
       1  1  |   1.392254   .8671567     1.61   0.123    -.4104327    3.194941
       1  3  |  -2.171501   1.334844    -1.63   0.120    -4.960932    .6179307
       1  4  |  -2.682483   1.835789    -1.46   0.158    -6.493885    1.128919
       1  5  |  -2.954671   2.377398    -1.24   0.227    -7.890116    1.980775
       1  6  |  -4.076352   3.443647    -1.18   0.249    -11.21967    3.066967
       1  7  |  -5.244372   3.980597    -1.32   0.202    -13.50967    3.020927
       1  8  |  -6.780488   4.921509    -1.38   0.183    -17.01972    3.458746
       1  9  |   -8.62952   5.730886    -1.51   0.147    -20.55429    3.295249
       1 10  |   -9.04003   6.420691    -1.41   0.173    -22.36949    4.289435
             |
       _cons |        100   2.016228    49.60   0.000     95.83124    104.1688
-------------+----------------------------------------------------------------
     sigma_u |  12.265333
     sigma_e |  12.516536
         rho |  .48986447   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =    21.2698
                                                Largest FMI       =     0.1785
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      18.51
                                                        avg       =      21.96
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   95.48612   2.858497    33.40   0.000     89.57589    101.3964
          2  |   97.37598   2.348318    41.47   0.000     92.52059    102.2314
          3  |        100   2.016228    49.60   0.000     95.83124    104.1688
          4  |   101.5844   1.472737    68.98   0.000     98.53934    104.6294
          5  |    103.112   1.127896    91.42   0.000     100.7799     105.444
          6  |   104.8329   1.404135    74.66   0.000     101.9297    107.7361
          7  |   107.5634   1.861818    57.77   0.000     103.7097     111.417
          8  |   111.1608   2.343941    47.42   0.000     106.3096    116.0119
          9  |   114.4378   3.009143    38.03   0.000     108.2038    120.6717
         10  |    117.966    3.69546    31.92   0.000     110.2958    125.6362
         11  |   121.6128   4.336645    28.04   0.000     112.6179    130.6078
         12  |   96.64161   2.833521    34.11   0.000      90.7725    102.5107
         13  |   98.76824   2.321012    42.55   0.000     93.96637    103.5701
         14  |        100   2.016228    49.60   0.000     95.83124    104.1688
         15  |   99.41287   1.461839    68.01   0.000       96.365    102.4607
         16  |   100.4295   1.357597    73.98   0.000      97.5978    103.2612
         17  |   101.8782   1.465453    69.52   0.000     98.80546     104.951
         18  |    103.487   2.336806    44.29   0.000     98.62448    108.3496
         19  |   105.9164   2.858346    37.06   0.000     99.97252    111.8603
         20  |   107.6573   3.076699    34.99   0.000     101.2437    114.0708
         21  |   109.3365   3.513453    31.12   0.000     102.0353    116.6376
         22  |   112.5728   4.060508    27.72   0.000     104.1429    121.0027
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 5.8 percent of observations

. 
. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. * To obtain values for failed social 
. xtreg gdpa1990index i.revny##ib(2).year if success==0 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       811
Group variable: diffid                          Number of groups   =        76

R-sq:  within  = 0.3319                         Obs per group: min =         1
       between = 0.0301                                        avg =      10.7
       overall = 0.1267                                        max =        11

                                                F(20,22)           =     11.25
corr(u_i, Xb)  = -0.0002                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 23 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |    -4.9813   1.544008    -3.23   0.004    -8.183377   -1.779224
          1  |   -1.90405    1.11105    -1.71   0.101    -4.208226    .4001259
          3  |   13.20131   4.570488     2.89   0.009     3.722699    22.67992
          4  |    15.4192   4.951883     3.11   0.005     5.149624    25.68878
          5  |   18.25311    4.99827     3.65   0.001     7.887331    28.61888
          6  |   21.54105   5.002021     4.31   0.000     11.16749     31.9146
          7  |    24.1657   5.105111     4.73   0.000     13.57834    34.75305
          8  |   25.97092   5.319344     4.88   0.000     14.93928    37.00257
          9  |   27.95671   6.035919     4.63   0.000     15.43898    40.47444
         10  |   29.97986   6.320434     4.74   0.000     16.87208    43.08764
             |
  revny#year |
       1  0  |   3.022319    1.86612     1.62   0.120    -.8477763    6.892415
       1  1  |   .9696623   1.129878     0.86   0.400    -1.373562    3.312886
       1  3  |   -10.1569   2.930734    -3.47   0.002    -16.23487   -4.078929
       1  4  |  -9.577599   3.336144    -2.87   0.009    -16.49634    -2.65886
       1  5  |  -10.12979    3.53256    -2.87   0.009    -17.45587    -2.80371
       1  6  |  -11.13466   3.810735    -2.92   0.008    -19.03764   -3.231681
       1  7  |  -12.32165   3.758886    -3.28   0.003     -20.1171   -4.526199
       1  8  |  -9.495773   4.427292    -2.14   0.043    -18.67741   -.3141323
       1  9  |  -7.675632   4.927919    -1.56   0.134    -17.89551    2.544246
       1 10  |  -9.453588   5.307696    -1.78   0.089    -20.46108      1.5539
             |
       _cons |   100.1317   2.967505    33.74   0.000     93.97745    106.2859
-------------+----------------------------------------------------------------
     sigma_u |  21.787695
     sigma_e |  15.237621
         rho |  .67153942   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year

Adjusted predictions                            Number of obs     =        811
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   95.15038   3.512109    27.09   0.000     88.26677     102.034
       0  1  |   98.22763   3.177436    30.91   0.000     91.99997    104.4553
       0  2  |          .  (not estimable)
       0  3  |    113.333   2.563172    44.22   0.000     108.3093    118.3567
       0  4  |   115.5509   2.689309    42.97   0.000     110.2799    120.8218
       0  5  |   118.3848   2.590902    45.69   0.000     113.3067    123.4629
       0  6  |   121.6727   2.648766    45.94   0.000     116.4812    126.8642
       0  7  |   124.2974   2.521394    49.30   0.000     119.3555    129.2392
       0  8  |   126.1026   2.791892    45.17   0.000     120.6306    131.5746
       0  9  |   128.0884   3.625079    35.33   0.000     120.9834    135.1934
       0 10  |   130.1115   3.968746    32.78   0.000     122.3329    137.8901
       1  0  |    98.1727   3.295133    29.79   0.000     91.71435     104.631
       1  1  |   99.19729   3.099269    32.01   0.000     93.12283    105.2717
       1  2  |          .  (not estimable)
       1  3  |   103.1761   2.198288    46.93   0.000     98.86752    107.4847
       1  4  |   105.9733   1.749394    60.58   0.000     102.5445     109.402
       1  5  |    108.255   1.960674    55.21   0.000     104.4121    112.0978
       1  6  |   110.5381   2.124066    52.04   0.000      106.375    114.7012
       1  7  |   111.9757   2.172358    51.55   0.000      107.718    116.2335
       1  8  |   116.6068   2.899954    40.21   0.000      110.923    122.2906
       1  9  |   120.4128    3.55577    33.86   0.000     113.4436    127.3819
       1 10  |   120.6579   3.428294    35.19   0.000     113.9386    127.3773
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 23 revolutions and 53 matched cases

. * To obtain values for successful social 
. xtreg gdpa1990index i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       364
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.2752                         Obs per group: min =         1
       between = 0.1010                                        avg =      10.7
       overall = 0.2061                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0122                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -5.291655   1.368281    -3.87   0.005    -8.446916   -2.136394
          1  |  -2.704751   .9832091    -2.75   0.025    -4.972035   -.4374669
          3  |   5.702635   2.082843     2.74   0.026     .8995912    10.50568
          4  |   10.01113    2.75139     3.64   0.007     3.666411    16.35584
          5  |   12.40643   3.195369     3.88   0.005     5.037893    19.77496
          6  |   15.20981   3.348375     4.54   0.002     7.488445    22.93118
          7  |    14.3849   3.685914     3.90   0.005     5.885167    22.88463
          8  |   14.43823    3.54869     4.07   0.004     6.254931    22.62152
          9  |   17.08422   3.748663     4.56   0.002     8.439791    25.72866
         10  |   19.41474   3.259187     5.96   0.000     11.89904    26.93043
             |
  revny#year |
       1  0  |   5.409811   2.317062     2.33   0.048      .066657    10.75296
       1  1  |   4.790055   2.497275     1.92   0.091    -.9686713    10.54878
       1  3  |  -14.06889   8.590733    -1.64   0.140    -33.87916    5.741375
       1  4  |  -19.73296   9.858648    -2.00   0.080    -42.46704    3.001124
       1  5  |   -20.0009   10.03808    -1.99   0.081    -43.14875    3.146953
       1  6  |  -18.88069    9.43897    -2.00   0.080    -40.64699    2.885618
       1  7  |  -13.52433   8.800646    -1.54   0.163    -33.81866    6.769993
       1  8  |  -10.18411   9.404723    -1.08   0.310    -31.87144    11.50322
       1  9  |  -10.77507   10.34103    -1.04   0.328    -34.62152    13.07138
       1 10  |  -11.72566   11.14165    -1.05   0.323    -37.41835    13.96703
             |
       _cons |        100   3.372693    29.65   0.000     92.22256    107.7774
-------------+----------------------------------------------------------------
     sigma_u |  12.610283
     sigma_e |  12.177786
         rho |  .51744249   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year

Adjusted predictions                            Number of obs     =        364
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   94.70834   2.379223    39.81   0.000     90.04515    99.37154
       0  1  |   97.29525   3.294124    29.54   0.000     90.83889    103.7516
       0  2  |          .  (not estimable)
       0  3  |   105.7026   3.570598    29.60   0.000     98.70439    112.7009
       0  4  |   110.0111     4.0762    26.99   0.000     102.0219    118.0003
       0  5  |   112.4064   4.433291    25.36   0.000     103.7173    121.0955
       0  6  |   115.2098   3.828087    30.10   0.000     107.7069    122.7127
       0  7  |   114.3849   3.822292    29.93   0.000     106.8933    121.8765
       0  8  |   114.4382    4.06841    28.13   0.000     106.4643    122.4122
       0  9  |   117.0842   4.615563    25.37   0.000     108.0379    126.1306
       0 10  |   119.4147   4.128242    28.93   0.000     111.3235    127.5059
       1  0  |   100.1182   3.626726    27.61   0.000      93.0099    107.2264
       1  1  |   102.0853   4.392066    23.24   0.000     93.47701    110.6936
       1  2  |          .  (not estimable)
       1  3  |   91.63374   5.536151    16.55   0.000     80.78309    102.4844
       1  4  |   90.27817   6.376488    14.16   0.000     77.78048    102.7759
       1  5  |   92.40553   6.387166    14.47   0.000     79.88691    104.9241
       1  6  |   96.32913   6.071461    15.87   0.000     84.42928     108.229
       1  7  |   100.8606   5.358209    18.82   0.000     90.35867    111.3625
       1  8  |   104.2541    5.74673    18.14   0.000     92.99074    115.5175
       1  9  |   106.3092   6.274349    16.94   0.000     94.01166    118.6067
       1 10  |   107.6891   7.399164    14.55   0.000     93.18698    122.1912
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * To obtain values for failed urban civic  
. xtreg gdpa1990index i.revny##ib(2).year if success==0 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       418
Group variable: diffid                          Number of groups   =        38

R-sq:  within  = 0.3216                         Obs per group: min =        11
       between = 0.0289                                        avg =      11.0
       overall = 0.1882                                        max =        11

                                                F(9,9)             =         .
corr(u_i, Xb)  = 0.0080                         Prob > F           =         .

                                 (Std. Err. adjusted for 10 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -6.416378   1.610816    -3.98   0.003     -10.0603   -2.772458
          1  |  -3.195542   .9261798    -3.45   0.007    -5.290706   -1.100378
          3  |    1.66055   1.140886     1.46   0.180     -.920313    4.241414
          4  |    4.53414   1.960985     2.31   0.046     .0980826    8.970197
          5  |   7.337672   2.886306     2.54   0.032     .8083946    13.86695
          6  |   9.231779   3.450291     2.68   0.025     1.426679    17.03688
          7  |   11.08965   3.300145     3.36   0.008     3.624208     18.5551
          8  |   14.35036   3.877723     3.70   0.005     5.578342    23.12238
          9  |   17.28588   4.587384     3.77   0.004     6.908494    27.66326
         10  |   19.89424   5.461355     3.64   0.005     7.539799    32.24868
             |
  revny#year |
       1  0  |   .4384427   2.148519     0.20   0.843    -4.421845    5.298731
       1  1  |  -.5040635   1.277804    -0.39   0.702    -3.394658    2.386531
       1  3  |  -1.955831   2.845544    -0.69   0.509    -8.392898    4.481237
       1  4  |  -1.705939   6.292287    -0.27   0.792    -15.94008     12.5282
       1  5  |   1.369147   9.304831     0.15   0.886    -19.67984    22.41814
       1  6  |   5.566096   10.93838     0.51   0.623    -19.17823    30.31043
       1  7  |   9.855863   12.78484     0.77   0.461    -19.06546    38.77718
       1  8  |   11.52458   13.09206     0.88   0.402    -18.09172    41.14088
       1  9  |   12.04521   12.72687     0.95   0.369    -16.74496    40.83538
       1 10  |   10.75346   12.60109     0.85   0.416     -17.7522    39.25912
             |
       _cons |        100   5.038648    19.85   0.000     88.60179    111.3982
-------------+----------------------------------------------------------------
     sigma_u |  14.655258
     sigma_e |  17.002838
         rho |  .42625136   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year

Adjusted predictions                            Number of obs     =        418
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   93.58362   6.218632    15.05   0.000     81.39533    105.7719
       0  1  |   96.80446   5.725585    16.91   0.000     85.58252    108.0264
       0  2  |          .  (not estimable)
       0  3  |   101.6606   4.275231    23.78   0.000     93.28125    110.0398
       0  4  |   104.5341   3.633822    28.77   0.000     97.41198    111.6563
       0  5  |   107.3377   2.886948    37.18   0.000     101.6794     112.996
       0  6  |   109.2318   3.112553    35.09   0.000     103.1313    115.3323
       0  7  |   111.0897   3.358776    33.07   0.000     104.5066    117.6727
       0  8  |   114.3504   3.114979    36.71   0.000     108.2451    120.4556
       0  9  |   117.2859    3.02006    38.84   0.000     111.3667    123.2051
       0 10  |   119.8942   3.428026    34.97   0.000     113.1754    126.6131
       1  0  |   94.02206   6.592801    14.26   0.000     81.10041    106.9437
       1  1  |   96.30039    5.85705    16.44   0.000     84.82079      107.78
       1  2  |          .  (not estimable)
       1  3  |   99.70472   2.979914    33.46   0.000     93.86419    105.5452
       1  4  |   102.8282   3.341129    30.78   0.000     96.27971    109.3767
       1  5  |   108.7068   6.667433    16.30   0.000     95.63889    121.7747
       1  6  |   114.7979   8.241492    13.93   0.000     98.64485    130.9509
       1  7  |   120.9455   9.713832    12.45   0.000     101.9068    139.9843
       1  8  |   125.8749   10.44361    12.05   0.000     105.4058     146.344
       1  9  |   129.3311   10.43887    12.39   0.000     108.8713    149.7909
       1 10  |   130.6477   10.71014    12.20   0.000     109.6562    151.6392
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 10 revolutions and 28 matched cases

. * To obtain values for successful urban civic 
. xtreg gdpa1990index i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       879
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.2760                         Obs per group: min =         1
       between = 0.0380                                        avg =      10.2
       overall = 0.1330                                        max =        11

                                                F(20,25)           =     13.48
corr(u_i, Xb)  = -0.0107                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -4.513645    1.07155    -4.21   0.000    -6.720543   -2.306746
          1  |   -2.62352    .486523    -5.39   0.000    -3.625533   -1.621507
          3  |   1.583529   .9119049     1.74   0.095    -.2945746    3.461632
          4  |   3.109555   1.743428     1.78   0.087     -.481102    6.700213
          5  |   4.829466   2.530286     1.91   0.068    -.3817553    10.04069
          6  |    7.86601   3.462008     2.27   0.032     .7358702    14.99615
          7  |   11.74061   4.166398     2.82   0.009     3.159754    20.32147
          8  |   15.35488    4.93681     3.11   0.005     5.187334    25.52243
          9  |   19.99211   5.775704     3.46   0.002      8.09683     31.8874
         10  |   24.16781    6.42487     3.76   0.001     10.93554    37.40008
             |
  revny#year |
       1  0  |   .9661188   1.686369     0.57   0.572    -2.507024    4.439261
       1  1  |   1.405294   .8297169     1.69   0.103      -.30354    3.114128
       1  3  |  -2.036071   1.208508    -1.68   0.104    -4.525039    .4528976
       1  4  |  -2.739606    1.76092    -1.56   0.132    -6.366289    .8870767
       1  5  |  -3.063302   2.251238    -1.36   0.186    -7.699813    1.573209
       1  6  |  -4.474564   3.401385    -1.32   0.200    -11.47985    2.530719
       1  7  |  -5.861933   3.999539    -1.47   0.155    -14.09914    2.375272
       1  8  |  -6.303668   4.163908    -1.51   0.143     -14.8794    2.272062
       1  9  |  -8.796536   5.226895    -1.68   0.105    -19.56153    1.968457
       1 10  |  -9.075329   6.155323    -1.47   0.153    -21.75245    3.601797
             |
       _cons |   100.1822   2.051304    48.84   0.000     95.95748     104.407
-------------+----------------------------------------------------------------
     sigma_u |   11.60514
     sigma_e |  12.228745
         rho |  .47385324   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year

Adjusted predictions                            Number of obs     =        879
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   95.66858   2.911845    32.85   0.000     89.96147    101.3757
       0  1  |    97.5587   2.387565    40.86   0.000     92.87916    102.2382
       0  2  |          .  (not estimable)
       0  3  |   101.7658   1.448822    70.24   0.000     98.92611    104.6054
       0  4  |   103.2918   .9936447   103.95   0.000     101.3443    105.2393
       0  5  |   105.0117   1.236655    84.92   0.000     102.5879    107.4355
       0  6  |   108.0482   1.834916    58.88   0.000     104.4519    111.6446
       0  7  |   111.9228   2.430967    46.04   0.000     107.1582    116.6874
       0  8  |   115.5371   3.255711    35.49   0.000      109.156    121.9182
       0  9  |   120.1743   4.193702    28.66   0.000     111.9548    128.3938
       0 10  |     124.35   4.945284    25.15   0.000     114.6575    134.0426
       1  0  |    96.6347   2.837555    34.06   0.000     91.07319    102.1962
       1  1  |     98.964   2.380276    41.58   0.000     94.29874    103.6293
       1  2  |          .  (not estimable)
       1  3  |   99.72968   1.450602    68.75   0.000     96.88655    102.5728
       1  4  |   100.5522    1.33949    75.07   0.000     97.92682    103.1775
       1  5  |   101.9484   1.383271    73.70   0.000     99.23722    104.6595
       1  6  |   103.5737   2.552515    40.58   0.000     98.57083    108.5765
       1  7  |   106.0609   3.185898    33.29   0.000     99.81666    112.3051
       1  8  |   109.2334   2.543241    42.95   0.000     104.2488    114.2181
       1  9  |   111.3778   3.289945    33.85   0.000     104.9296     117.826
       1 10  |   115.2747   3.858336    29.88   0.000     107.7125    122.8369
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. *=======================================================================
. * RELATIONSHIP BETWEEN NUMBER OF DEATHS IN REVOLUTIONARY CONTENTION AND 
. *    ECONOMIC DECLINE AFTER REVOLUTION
. *=======================================================================
. * Complete case sample only
. clear

. use fullsamplediffindifflong.dta, clear

. xtreg D.gdpa1990pc lndeaths if year==2 | year==3, re vce(robust)

Random-effects GLS regression                   Number of obs     =        324
Group variable: revid                           Number of groups  =        163

R-sq:                                           Obs per group:
     within  =      .                                         min =          1
     between = 0.0566                                         avg =        2.0
     overall = 0.0311                                         max =          2

                                                Wald chi2(1)      =       9.40
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0022

                                (Std. Err. adjusted for 163 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
D.gdpa1990pc |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
    lndeaths |  -22.11499    7.21401    -3.07   0.002    -36.25419   -7.975789
       _cons |   154.5861   43.24897     3.57   0.000     69.81966    239.3525
-------------+----------------------------------------------------------------
     sigma_u |   125.9983
     sigma_e |  489.57868
         rho |  .06212003   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. 
. *=======================================================================
. * RELATIONSHIP BETWEEN HENISZ MEASURE OF POLITICAL CONSTRAINTS AND 
. *    POST-REVOLUTIONARY SOCIAL REVOLUTIONARY AND URBAN CIVIC GOVERNANCE
. *=======================================================================
. * Successsful social vs. successful urban civic
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "polconiii"

. quietly: chp9simpmultimp

. * Successful social  vs. successful urban civic 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        440

Group variable: revid                           Number of groups  =         40
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3532
                                                Largest FMI       =     0.1710
                                                Complete DF       =         39
                                                DF:     min       =      28.81
                                                        avg       =      35.29
DF adjustment:   Small sample                           max       =      37.14
                                                F(  18,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 40 clusters in revid)
------------------------------------------------------------------------------
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .0354255   .0276748     1.28   0.208    -.0206417    .0914927
          1  |   .0134914   .0186926     0.72   0.475    -.0243784    .0513612
          3  |  -.0050385   .0396223    -0.13   0.899    -.0853104    .0752335
          4  |   .1264596   .0468786     2.70   0.011     .0314239    .2214953
          5  |   .2273635   .0511515     4.44   0.000     .1236219    .3311052
          6  |   .2437309   .0503179     4.84   0.000     .1416788    .3457831
          7  |   .2571787   .0541111     4.75   0.000     .1474239    .3669334
          8  |   .2548308   .0542885     4.69   0.000     .1447392    .3649224
          9  |   .2021972   .0559218     3.62   0.001     .0886304     .315764
         10  |     .20594   .0582065     3.54   0.001     .0874973    .3243826
             |
leftist#year |
       1  0  |  -.0372507   .0329889    -1.13   0.268    -.1047377    .0302364
       1  1  |  -.0124721   .0187201    -0.67   0.509    -.0503977    .0254535
       1  3  |   .0030303   .0396727     0.08   0.940    -.0773439    .0834045
       1  4  |  -.0810276   .0584027    -1.39   0.174    -.1993963     .037341
       1  5  |   -.179468   .0632251    -2.84   0.007    -.3076444   -.0512916
       1  6  |  -.1915605   .0634252    -3.02   0.005    -.3202253   -.0628956
       1  7  |  -.2042284   .0668093    -3.06   0.004    -.3398425   -.0686142
       1  8  |  -.1699615   .0702237    -2.42   0.021    -.3125698   -.0273533
       1  9  |  -.1165994   .0712548    -1.64   0.111    -.2614064    .0282075
       1 10  |  -.1247681   .0769868    -1.62   0.116    -.2822687    .0327325
             |
       _cons |    .098995   .0221895     4.46   0.000     .0540406    .1439495
-------------+----------------------------------------------------------------
     sigma_u |  .11949058
     sigma_e |  .14802053
         rho |  .39454981   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        440
                                                Average RVI       =    11.1062
                                                Largest FMI       =     0.2339
                                                Complete DF       =         39
DF adjustment:   Small sample                   DF:     min       =      25.36
                                                        avg       =      34.32
Within VCE type: Delta-method                           max       =      37.14

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .1344206   .0318646     4.22   0.000     .0698651     .198976
          2  |   .1124864   .0265789     4.23   0.000     .0586395    .1663334
          3  |    .098995   .0221895     4.46   0.000     .0540406    .1439495
          4  |   .0939566   .0359612     2.61   0.013     .0211018    .1668114
          5  |   .2254546   .0366998     6.14   0.000     .1510186    .2998907
          6  |   .3263586   .0362633     9.00   0.000      .252713    .4000041
          7  |    .342726   .0355192     9.65   0.000     .2705875    .4148645
          8  |   .3561737   .0373115     9.55   0.000     .2803665    .4319809
          9  |   .3538259   .0364475     9.71   0.000     .2798033    .4278484
         10  |   .3011922    .040234     7.49   0.000     .2192186    .3831658
         11  |    .304935   .0426733     7.15   0.000     .2175646    .3923053
         12  |   .0971699   .0282021     3.45   0.002     .0391283    .1552115
         13  |   .1000144   .0221419     4.52   0.000     .0551565    .1448722
         14  |    .098995   .0221895     4.46   0.000     .0540406    .1439495
         15  |   .0969869   .0224181     4.33   0.000     .0515695    .1424043
         16  |    .144427   .0351181     4.11   0.000     .0732802    .2155738
         17  |   .1468906    .037004     3.97   0.000     .0719231     .221858
         18  |   .1511655   .0384126     3.94   0.000     .0731694    .2291615
         19  |   .1519453   .0381221     3.99   0.000     .0745766    .2293141
         20  |   .1838643   .0437027     4.21   0.000     .0948458    .2728828
         21  |   .1845928   .0440465     4.19   0.000     .0947769    .2744087
         22  |   .1801669   .0468513     3.85   0.001      .084196    .2761377
------------------------------------------------------------------------------

. * Successful social vs. failed social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        572

Group variable: revid                           Number of groups  =         52
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2723
                                                Largest FMI       =     0.2036
                                                Complete DF       =         51
                                                DF:     min       =      34.33
                                                        avg       =      47.32
DF adjustment:   Small sample                           max       =      49.11
                                                F(  18,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 52 clusters in revid)
------------------------------------------------------------------------------
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0515747   .0249522    -2.07   0.044    -.1017455   -.0014039
          1  |  -.0249894   .0170919    -1.46   0.150    -.0593554    .0093765
          3  |   .0345766   .0326886     1.06   0.295    -.0311099    .1002631
          4  |   .0332121   .0321955     1.03   0.307    -.0314836    .0979077
          5  |    .029404   .0356401     0.83   0.413    -.0422133    .1010213
          6  |   .0294441   .0367633     0.80   0.427    -.0444304    .1033185
          7  |   .0210182   .0354526     0.59   0.556    -.0502225    .0922589
          8  |   .0407927   .0327338     1.25   0.219    -.0249846    .1065701
          9  |   .0579057    .033093     1.75   0.086    -.0085934    .1244048
         10  |   .0780824    .036035     2.17   0.035     .0056715    .1504933
             |
success#year |
       1  0  |   .0497496   .0305912     1.63   0.113     -.012397    .1118961
       1  1  |   .0260088   .0171215     1.52   0.135    -.0084166    .0604342
       1  3  |  -.0365847   .0327487    -1.12   0.269     -.102392    .0292225
       1  4  |   .0122199   .0472178     0.26   0.797    -.0826624    .1071022
       1  5  |   .0184915   .0512645     0.36   0.720    -.0845224    .1215054
       1  6  |   .0227264   .0532261     0.43   0.671    -.0843162    .1297689
       1  7  |   .0319321   .0520782     0.61   0.543    -.0727866    .1366508
       1  8  |   .0440765    .055022     0.80   0.427    -.0667496    .1549027
       1  9  |    .027692   .0554318     0.50   0.620    -.0840099     .139394
       1 10  |   .0030894   .0595774     0.05   0.959    -.1171725    .1233513
             |
       _cons |   .1688794    .018832     8.97   0.000     .1310373    .2067216
-------------+----------------------------------------------------------------
     sigma_u |  .19782641
     sigma_e |  .11530843
         rho |  .74641045   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        572
                                                Average RVI       =     2.0380
                                                Largest FMI       =     0.2793
                                                Complete DF       =         51
DF adjustment:   Small sample                   DF:     min       =      28.61
                                                        avg       =      46.48
Within VCE type: Delta-method                           max       =      49.11

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .1173048   .0238609     4.92   0.000      .069325    .1652845
          2  |     .14389   .0234792     6.13   0.000     .0966955    .1910845
          3  |   .1688794    .018832     8.97   0.000     .1310373    .2067216
          4  |    .203456   .0216212     9.41   0.000     .1600091     .246903
          5  |   .2020915   .0214458     9.42   0.000     .1589971     .245186
          6  |   .1982834   .0200065     9.91   0.000     .1580811    .2384858
          7  |   .1983235   .0205424     9.65   0.000     .1570443    .2396027
          8  |   .1898976   .0194414     9.77   0.000      .150831    .2289643
          9  |   .2096722   .0181751    11.54   0.000       .17315    .2461943
         10  |   .2267852    .019012    11.93   0.000     .1885813     .264989
         11  |   .2469619   .0225911    10.93   0.000     .2015659    .2923578
         12  |   .1670543   .0256869     6.50   0.000     .1144879    .2196208
         13  |   .1698988   .0187957     9.04   0.000     .1321295    .2076681
         14  |   .1688794    .018832     8.97   0.000     .1310373    .2067216
         15  |   .1668713   .0190594     8.76   0.000     .1285721    .2051705
         16  |   .2143114   .0345012     6.21   0.000     .1449825    .2836403
         17  |    .216775   .0364864     5.94   0.000      .143457    .2900929
         18  |   .2210499   .0379623     5.82   0.000     .1446265    .2974733
         19  |   .2218297   .0376573     5.89   0.000     .1460511    .2976084
         20  |   .2537487   .0433675     5.85   0.000      .166209    .3412885
         21  |   .2544772   .0436916     5.82   0.000     .1661995    .3427549
         22  |   .2500513   .0465484     5.37   0.000     .1556259    .3444767
------------------------------------------------------------------------------

. * Successful urban civic vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if urbancivic==1, fe vce(robus
> t)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        528

Group variable: revid                           Number of groups  =         48
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2670
                                                Largest FMI       =     0.2667
                                                Complete DF       =         47
DF adjustment:   Small sample                   DF:     min       =      27.62
                                                        avg       =      40.02
                                                        max       =      44.17
Model F test:       Equal FMI                   F(  19,   43.3)   =       2.74
Within VCE type:       Robust                   Prob > F          =     0.0030

                                (Within VCE adjusted for 48 clusters in revid)
------------------------------------------------------------------------------
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0170944   .0174155    -0.98   0.333    -.0523984    .0182096
          1  |  -.0170944   .0174155    -0.98   0.333    -.0523984    .0182096
          3  |   .0158567   .0226718     0.70   0.490    -.0306128    .0623262
          4  |   .0242243   .0240252     1.01   0.320    -.0245072    .0729559
          5  |    .065695   .0311104     2.11   0.042     .0025211    .1288689
          6  |   .0668983   .0268885     2.49   0.017      .012585    .1212116
          7  |   .0407818   .0371921     1.10   0.279     -.034274    .1158377
          8  |   .0651409   .0433832     1.50   0.141    -.0225688    .1528507
          9  |   .0890893   .0450464     1.98   0.055    -.0018159    .1799946
         10  |   .0927236   .0458826     2.02   0.050     .0000186    .1854286
             |
success#year |
       1  0  |   .0525199   .0325562     1.61   0.114    -.0131299    .1181697
       1  1  |   .0305858   .0254651     1.20   0.237    -.0208188    .0819904
       1  3  |  -.0208951   .0454411    -0.46   0.648    -.1126247    .0708344
       1  4  |   .1022353   .0525156     1.95   0.058     -.003704    .2081745
       1  5  |   .1616685   .0597143     2.71   0.010     .0411017    .2822353
       1  6  |   .1768326   .0569881     3.10   0.003     .0618769    .2917883
       1  7  |   .2163969   .0657595     3.29   0.002     .0837266    .3490671
       1  8  |   .1896899    .070001     2.71   0.010     .0483111    .3310686
       1  9  |   .1131078   .0726004     1.56   0.127    -.0336083     .259824
       1 10  |   .1132163    .071468     1.58   0.120    -.0308239    .2572566
             |
       _cons |   .1324027   .0199029     6.65   0.000     .0922954      .17251
-------------+----------------------------------------------------------------
     sigma_u |  .14094653
     sigma_e |  .14321441
         rho |  .49201954   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        528
                                                Average RVI       =     2.1717
                                                Largest FMI       =     0.1552
                                                Complete DF       =         47
DF adjustment:   Small sample                   DF:     min       =      35.43
                                                        avg       =      41.59
Within VCE type: Delta-method                           max       =      44.85

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .1153083   .0215488     5.35   0.000     .0718724    .1587443
          2  |   .1153083   .0215488     5.35   0.000     .0718724    .1587443
          3  |   .1324027   .0199029     6.65   0.000     .0922954      .17251
          4  |   .1482594   .0259277     5.72   0.000     .0956943    .2008245
          5  |    .156627   .0269615     5.81   0.000     .1021364    .2111177
          6  |   .1980977   .0307513     6.44   0.000     .1358471    .2603483
          7  |    .199301   .0264938     7.52   0.000     .1458528    .2527492
          8  |   .1731845   .0331273     5.23   0.000     .1063732    .2399958
          9  |   .1975436   .0393007     5.03   0.000     .1179977    .2770896
         10  |   .2214921   .0409018     5.42   0.000     .1388764    .3041077
         11  |   .2251263   .0414242     5.43   0.000     .1413775    .3088751
         12  |   .1678282   .0308667     5.44   0.000     .1056497    .2300068
         13  |   .1458941   .0250974     5.81   0.000     .0953311    .1964571
         14  |   .1324027   .0199029     6.65   0.000     .0922954      .17251
         15  |   .1273642   .0362474     3.51   0.001     .0543516    .2003769
         16  |   .2588623   .0382335     6.77   0.000     .1817801    .3359445
         17  |   .3597662   .0386727     9.30   0.000     .2817483    .4377842
         18  |   .3761336   .0379646     9.91   0.000     .2995334    .4527339
         19  |   .3895814   .0403941     9.64   0.000     .3080205    .4711422
         20  |   .3872335   .0395908     9.78   0.000     .3073529    .4671141
         21  |   .3345999    .042802     7.82   0.000     .2480439    .4211559
         22  |   .3383427   .0451204     7.50   0.000      .246783    .4299023
------------------------------------------------------------------------------

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.8 percent of observations

. * Complete case sample as robustness test
. clear

. use simplediffindifflong.dta, clear

. xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        417
Group variable: revid                           Number of groups  =         41

R-sq:                                           Obs per group:
     within  = 0.3091                                         min =          4
     between = 0.4444                                         avg =       10.2
     overall = 0.3398                                         max =         11

                                                F(17,40)          =          .
corr(u_i, Xb)  = 0.1991                         Prob > F          =          .

                                 (Std. Err. adjusted for 41 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .0354255   .0277027     1.28   0.208    -.0205638    .0914149
          1  |   .0134914   .0187114     0.72   0.475    -.0243258    .0513086
          3  |  -.0050385   .0396623    -0.13   0.900    -.0851989     .075122
          4  |    .128501    .047679     2.70   0.010     .0321381    .2248639
          5  |   .2333739   .0511403     4.56   0.000     .1300154    .3367323
          6  |   .2618177   .0514035     5.09   0.000     .1579273    .3657081
          7  |   .2672882   .0556927     4.80   0.000      .154729    .3798473
          8  |   .2625014   .0562424     4.67   0.000     .1488313    .3761714
          9  |   .2005487   .0578691     3.47   0.001      .083591    .3175064
         10  |   .2094801   .0598736     3.50   0.001     .0884711    .3304891
             |
leftist#year |
       1  0  |  -.0376385   .0280389    -1.34   0.187    -.0943071    .0190301
       1  1  |  -.0124721    .018739    -0.67   0.510     -.050345    .0254009
       1  3  |  -.0088408    .041482    -0.21   0.832     -.092679    .0749973
       1  4  |   -.079669   .0589553    -1.35   0.184    -.1988222    .0394842
       1  5  |  -.1822543   .0630135    -2.89   0.006    -.3096094   -.0548992
       1  6  |   -.207854   .0642337    -3.24   0.002    -.3376753   -.0780328
       1  7  |  -.2133245    .067715    -3.15   0.003    -.3501817   -.0764673
       1  8  |  -.1800385   .0701458    -2.57   0.014    -.3218084   -.0382685
       1  9  |  -.1141456   .0712037    -1.60   0.117    -.2580537    .0297625
       1 10  |  -.1313494   .0729827    -1.80   0.079    -.2788529    .0161541
             |
       _cons |   .1004389   .0213228     4.71   0.000     .0573439     .143534
-------------+----------------------------------------------------------------
     sigma_u |  .11902509
     sigma_e |  .14457643
         rho |  .40397059   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        417
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   .1358645   .0310974     4.37   0.000     .0749147    .1968142
       0  1  |   .1139303    .026423     4.31   0.000     .0621421    .1657185
       0  2  |   .1004389   .0213228     4.71   0.000     .0586469    .1422309
       0  3  |   .0954005   .0357475     2.67   0.008     .0253366    .1654643
       0  4  |   .2289399   .0375959     6.09   0.000     .1552533    .3026266
       0  5  |   .3338128   .0371014     9.00   0.000     .2610954    .4065302
       0  6  |   .3622566   .0379613     9.54   0.000     .2878538    .4366594
       0  7  |   .3677271   .0400011     9.19   0.000     .2893264    .4461278
       0  8  |   .3629403   .0395063     9.19   0.000     .2855094    .4403713
       0  9  |   .3009876   .0429286     7.01   0.000     .2168491    .3851262
       0 10  |    .309919   .0445816     6.95   0.000     .2225407    .3972973
       1  0  |    .098226   .0221951     4.43   0.000     .0547243    .1417276
       1  1  |   .1014583   .0212644     4.77   0.000     .0597808    .1431358
       1  2  |   .1004389   .0213228     4.71   0.000     .0586469    .1422309
       1  3  |   .0865596   .0239196     3.62   0.000      .039678    .1334413
       1  4  |   .1492709   .0336279     4.44   0.000     .0833614    .2151804
       1  5  |   .1515585   .0353694     4.29   0.000     .0822358    .2208813
       1  6  |   .1544026    .036782     4.20   0.000     .0823111    .2264941
       1  7  |   .1544026    .036782     4.20   0.000     .0823111    .2264941
       1  8  |   .1829018   .0398817     4.59   0.000     .1047351    .2610686
       1  9  |    .186842   .0395843     4.72   0.000     .1092582    .2644258
       1 10  |   .1785697   .0397505     4.49   0.000     .1006601    .2564792
------------------------------------------------------------------------------

. * Successful urban civic vs. failed urban civic
. xtreg $yvar i.success##ib(2).year if urbancivic==1, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        483
Group variable: revid                           Number of groups  =         48

R-sq:                                           Obs per group:
     within  = 0.2935                                         min =          2
     between = 0.1350                                         avg =       10.1
     overall = 0.2295                                         max =         11

                                                F(19,47)          =          .
corr(u_i, Xb)  = 0.0287                         Prob > F          =          .

                                 (Std. Err. adjusted for 48 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0174691   .0159736    -1.09   0.280    -.0496037    .0146656
          1  |  -.0174691   .0159736    -1.09   0.280    -.0496037    .0146656
          3  |   .0168864   .0176363     0.96   0.343    -.0185933    .0523661
          4  |   .0241755   .0218326     1.11   0.274    -.0197461    .0680971
          5  |   .0653974   .0277691     2.36   0.023     .0095332    .1212617
          6  |   .0670983   .0262972     2.55   0.014     .0141952    .1200015
          7  |   .0448971   .0382196     1.17   0.246    -.0319909     .121785
          8  |   .0724922   .0455108     1.59   0.118    -.0190637    .1640481
          9  |   .0814448   .0476758     1.71   0.094    -.0144665     .177356
         10  |   .0958678    .047818     2.00   0.051    -.0003297    .1920653
             |
success#year |
       1  0  |   .0528946   .0318521     1.66   0.103    -.0111835    .1169728
       1  1  |   .0309605   .0245276     1.26   0.213    -.0183827    .0803037
       1  3  |  -.0219248   .0432164    -0.51   0.614     -.108865    .0650154
       1  4  |   .1043255   .0522124     2.00   0.052    -.0007124    .2093634
       1  5  |   .1679764   .0579574     2.90   0.006     .0513812    .2845717
       1  6  |   .1947194   .0574994     3.39   0.001     .0790454    .3103933
       1  7  |   .2223911   .0673047     3.30   0.002     .0869915    .3577907
       1  8  |   .1900092     .07212     2.63   0.011     .0449225     .335096
       1  9  |    .119104   .0747444     1.59   0.118    -.0312624    .2694703
       1 10  |   .1136123   .0763797     1.49   0.144    -.0400438    .2672684
             |
       _cons |   .1289659   .0193237     6.67   0.000     .0900916    .1678401
-------------+----------------------------------------------------------------
     sigma_u |  .14284196
     sigma_e |  .14145827
         rho |  .50486689   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        483
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   .1114968   .0207076     5.38   0.000     .0709106     .152083
       0  1  |   .1114968   .0207076     5.38   0.000     .0709106     .152083
       0  2  |   .1289659   .0193237     6.67   0.000     .0910921    .1668396
       0  3  |   .1458522   .0225507     6.47   0.000     .1016536    .1900509
       0  4  |   .1531414   .0253251     6.05   0.000     .1035051    .2027777
       0  5  |   .1943633   .0281301     6.91   0.000     .1392294    .2494972
       0  6  |   .1960642   .0264196     7.42   0.000     .1442827    .2478457
       0  7  |   .1738629   .0341776     5.09   0.000      .106876    .2408499
       0  8  |    .201458   .0406746     4.95   0.000     .1217372    .2811789
       0  9  |   .2104106   .0428215     4.91   0.000     .1264821    .2943392
       0 10  |   .2248336   .0429167     5.24   0.000     .1407184    .3089489
       1  0  |   .1643914   .0302475     5.43   0.000     .1051075    .2236753
       1  1  |   .1424573   .0250755     5.68   0.000     .0933101    .1916044
       1  2  |   .1289659   .0193237     6.67   0.000     .0910921    .1668396
       1  3  |   .1239274   .0359082     3.45   0.001     .0535487    .1943061
       1  4  |   .2574669   .0387284     6.65   0.000     .1815606    .3333732
       1  5  |   .3623397   .0389176     9.31   0.000     .2860626    .4386169
       1  6  |   .3907836   .0396658     9.85   0.000       .31304    .4685271
       1  7  |    .396254   .0420873     9.42   0.000     .3137644    .4787437
       1  8  |   .3914673   .0417858     9.37   0.000     .3095685     .473366
       1  9  |   .3295146   .0448572     7.35   0.000      .241596    .4174331
       1 10  |    .338446   .0465581     7.27   0.000     .2471937    .4296983
------------------------------------------------------------------------------

. 
. * Matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "polconiii"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.7516
                                                Largest FMI       =     0.5741
                                                Complete DF       =          8
                                                DF:     min       =       3.12
                                                        avg       =       4.85
DF adjustment:   Small sample                           max       =       6.55
                                                F(  17,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0134213   .0140002    -0.96   0.373    -.0472169    .0203744
          1  |  -.0123821   .0141578    -0.87   0.413     -.046337    .0215728
          3  |   .0502487   .0448209     1.12   0.317    -.0677735    .1682709
          4  |   .0347785   .0445717     0.78   0.473    -.0826341    .1521912
          5  |   .0415831   .0508041     0.82   0.453    -.0918946    .1750608
          6  |   .0649678   .0416602     1.56   0.187    -.0463155     .176251
          7  |   .0259684    .040367     0.64   0.560    -.0926657    .1446026
          8  |   .0242263    .052161     0.46   0.664    -.1152038    .1636564
          9  |   .0242731   .0540067     0.45   0.675    -.1216356    .1701818
         10  |   .0429519   .0617391     0.70   0.522    -.1227954    .2086992
             |
  revny#year |
       1  0  |    .016823    .024026     0.70   0.523    -.0505159     .084162
       1  1  |   .0138544   .0140683     0.98   0.360    -.0198859    .0475948
       1  3  |  -.0531493   .0449723    -1.18   0.294    -.1714599    .0651613
       1  4  |  -.0183018   .0425094    -0.43   0.687    -.1319162    .0953127
       1  5  |  -.0251063   .0519053    -0.48   0.650    -.1607214    .1105087
       1  6  |    -.04287   .0432374    -0.99   0.372    -.1584601    .0727201
       1  7  |  -.0022601   .0460769    -0.05   0.964    -.1458455    .1413254
       1  8  |   .0416899   .0801664     0.52   0.624    -.1616327    .2450125
       1  9  |   .0471476   .0795932     0.59   0.578    -.1540686    .2483637
       1 10  |   .0258334   .0871786     0.30   0.779    -.1960598    .2477265
             |
       _cons |   .0417146   .0139794     2.98   0.022     .0081874    .0752417
-------------+----------------------------------------------------------------
     sigma_u |  .11771995
     sigma_e |  .09569449
         rho |  .60211746   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     4.6273
                                                Largest FMI       =     0.6777
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       2.47
                                                        avg       =       5.01
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .0282933   .0195987     1.44   0.196    -.0188627    .0754494
          2  |   .0293325   .0195222     1.50   0.180    -.0174881    .0761531
          3  |   .0417146   .0139794     2.98   0.022     .0081874    .0752417
          4  |   .0919633   .0410032     2.24   0.084    -.0192374     .203164
          5  |   .0764931   .0383862     1.99   0.118     -.030545    .1835313
          6  |   .0832977   .0435752     1.91   0.129    -.0378698    .2044651
          7  |   .1066823   .0337796     3.16   0.043     .0055702    .2077945
          8  |    .067683   .0344099     1.97   0.163    -.0564911    .1918571
          9  |   .0659409   .0445663     1.48   0.219    -.0624561    .1943378
         10  |   .0659877   .0466394     1.41   0.238     -.070202    .2021774
         11  |   .0846665   .0531292     1.59   0.193    -.0689603    .2382933
         12  |   .0451163   .0212127     2.13   0.101    -.0138926    .1041253
         13  |    .043187   .0131924     3.27   0.015     .0115474    .0748266
         14  |   .0417146   .0139794     2.98   0.022     .0081874    .0752417
         15  |    .038814   .0158416     2.45   0.046     .0008206    .0768073
         16  |   .0581913   .0147425     3.95   0.006      .022834    .0935487
         17  |   .0581913   .0147425     3.95   0.006      .022834    .0935487
         18  |   .0638123   .0241118     2.65   0.063     -.005706    .1333307
         19  |   .0654229   .0268907     2.43   0.083    -.0148032    .1456491
         20  |   .1076308   .0459848     2.34   0.057    -.0040914    .2193529
         21  |   .1131353   .0463523     2.44   0.050     .0003098    .2259608
         22  |   .1104999   .0486277     2.27   0.065    -.0093088    .2303086
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts 
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        869

Group variable: diffid                          Number of groups  =         79
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3195
                                                Largest FMI       =     0.1277
                                                Complete DF       =         23
DF adjustment:   Small sample                   DF:     min       =      18.38
                                                        avg       =      20.46
                                                        max       =      21.23
Model F test:       Equal FMI                   F(  20,   19.6)   =       4.36
Within VCE type:       Robust                   Prob > F          =     0.0010

                                (Within VCE adjusted for 24 clusters in revid)
------------------------------------------------------------------------------
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   .0003397    .015378     0.02   0.983    -.0316252    .0323045
          1  |    .000055   .0088932     0.01   0.995    -.0184356    .0185457
          3  |   .0267868   .0105107     2.55   0.019      .004943    .0486306
          4  |   .0827585   .0402875     2.05   0.052    -.0009686    .1664856
          5  |   .0519838   .0179195     2.90   0.009     .0146322    .0893355
          6  |   .1026954   .0418856     2.45   0.023     .0153885    .1900023
          7  |   .0957351   .0439023     2.18   0.041     .0043685    .1871017
          8  |   .0823876   .0404968     2.03   0.055    -.0020677    .1668429
          9  |   .0784716    .044543     1.76   0.093    -.0144173    .1713604
         10  |   .0779394    .048425     1.61   0.123     -.023074    .1789527
             |
  revny#year |
       1  0  |   .0395141   .0287804     1.37   0.184    -.0203016    .0993297
       1  1  |   .0151228   .0186367     0.81   0.426    -.0236127    .0538584
       1  3  |  -.0324551   .0466362    -0.70   0.494    -.1293763    .0644661
       1  4  |   .0639837   .0661965     0.97   0.345    -.0736791    .2016466
       1  5  |   .2080077   .0499901     4.16   0.000     .1039488    .3120666
       1  6  |   .1695748   .0627557     2.70   0.014     .0385445    .3006051
       1  7  |   .1908925   .0673827     2.83   0.010     .0504685    .3313166
       1  8  |   .2007639   .0644988     3.11   0.006      .065457    .3360707
       1  9  |   .1449107   .0645394     2.25   0.037     .0098158    .2800057
       1 10  |    .148163   .0697979     2.12   0.047     .0024018    .2939242
             |
       _cons |   .1269011   .0204188     6.21   0.000     .0844661    .1693361
-------------+----------------------------------------------------------------
     sigma_u |  .15841886
     sigma_e |  .14983854
         rho |   .5278134   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        869
                                                Average RVI       =     1.4685
                                                Largest FMI       =     0.2156
                                                Complete DF       =         23
DF adjustment:   Small sample                   DF:     min       =      16.06
                                                        avg       =      20.10
Within VCE type: Delta-method                           max       =      21.23

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .1272408   .0219749     5.79   0.000     .0815677    .1729138
          2  |   .1269561   .0195695     6.49   0.000     .0862822      .16763
          3  |   .1269011   .0204188     6.21   0.000     .0844661    .1693361
          4  |   .1536879   .0213396     7.20   0.000     .1093392    .1980366
          5  |   .2096596   .0328613     6.38   0.000      .141366    .2779532
          6  |   .1788849   .0178502    10.02   0.000     .1416769     .216093
          7  |   .2295965   .0340116     6.75   0.000     .1585718    .3006212
          8  |   .2226362   .0357466     6.23   0.000     .1481847    .2970877
          9  |   .2092887   .0313425     6.68   0.000     .1437339    .2748435
         10  |   .2053727   .0352209     5.83   0.000     .1317368    .2790086
         11  |   .2048405   .0406044     5.04   0.000     .1199778    .2897032
         12  |   .1667548   .0342652     4.87   0.000     .0955436    .2379661
         13  |   .1420789   .0275887     5.15   0.000      .084743    .1994149
         14  |   .1269011   .0204188     6.21   0.000     .0844661    .1693361
         15  |   .1212328   .0402609     3.01   0.007     .0375611    .2049046
         16  |   .2736433    .043745     6.26   0.000     .1825872    .3646995
         17  |   .3868927   .0381222    10.15   0.000     .3075788    .4662066
         18  |   .3991713   .0388095    10.29   0.000     .3182422    .4801004
         19  |   .4135287   .0413046    10.01   0.000       .32725    .4998075
         20  |   .4100525   .0446296     9.19   0.000     .3154691    .5046359
         21  |   .3502834   .0447414     7.83   0.000     .2555575    .4450093
         22  |   .3530035   .0428279     8.24   0.000     .2634435    .4425635
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 24 revolutions and 55 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 6.8 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       357
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0722                         Obs per group: min =         3
       between = 0.0184                                        avg =      10.5
       overall = 0.0269                                        max =        11

                                                F(7,8)             =         .
corr(u_i, Xb)  = 0.0084                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0045226   .0156379    -0.29   0.780    -.0405836    .0315385
          1  |  -.0123821    .014177    -0.87   0.408    -.0450742    .0203101
          3  |    .050186   .0355812     1.41   0.196    -.0318643    .1322363
          4  |   .0220869   .0314851     0.70   0.503    -.0505177    .0946916
          5  |   .0372972   .0401716     0.93   0.380    -.0553386    .1299331
          6  |   .0571646   .0300302     1.90   0.093    -.0120853    .1264145
          7  |   .0214802   .0202168     1.06   0.319      -.02514    .0681003
          8  |   .0160811   .0381098     0.42   0.684    -.0718002    .1039623
          9  |   .0164803   .0380661     0.43   0.676    -.0713002    .1042607
         10  |   .0286716   .0425879     0.67   0.520    -.0695363    .1268796
             |
  revny#year |
       1  0  |   .0033876   .0168073     0.20   0.845      -.03537    .0421452
       1  1  |   .0138544   .0140874     0.98   0.354    -.0186311      .04634
       1  3  |  -.0530866   .0357668    -1.48   0.176    -.1355651    .0293918
       1  4  |  -.0056102   .0354166    -0.16   0.878    -.0872811    .0760608
       1  5  |  -.0208205   .0433219    -0.48   0.644     -.120721      .07908
       1  6  |  -.0392614   .0340442    -1.15   0.282    -.1177674    .0392446
       1  7  |  -.0035769   .0255189    -0.14   0.892    -.0624237    .0552698
       1  8  |    .049065   .0760012     0.65   0.537     -.126194     .224324
       1  9  |   .0509107   .0762628     0.67   0.523    -.1249517    .2267731
       1 10  |   .0387193   .0801533     0.48   0.642    -.1461145    .2235532
             |
       _cons |   .0447058   .0097735     4.57   0.002     .0221681    .0672434
-------------+----------------------------------------------------------------
     sigma_u |  .11684495
     sigma_e |  .09170434
         rho |  .61882317   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        357
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .0401832   .0189642     2.12   0.034     .0030141    .0773523
       0  1  |   .0323237   .0172345     1.88   0.061    -.0014553    .0661027
       0  2  |   .0447058   .0097735     4.57   0.000     .0255501    .0638614
       0  3  |   .0948918    .032004     2.96   0.003     .0321651    .1576184
       0  4  |   .0667927   .0296075     2.26   0.024     .0087631    .1248223
       0  5  |    .082003   .0349859     2.34   0.019     .0134319    .1505741
       0  6  |   .1018704   .0230706     4.42   0.000     .0566529    .1470879
       0  7  |   .0661859    .015725     4.21   0.000     .0353655    .0970064
       0  8  |   .0607868   .0336269     1.81   0.071    -.0051207    .1266944
       0  9  |    .061186   .0336219     1.82   0.069    -.0047117    .1270837
       0 10  |   .0733774   .0372826     1.97   0.049     .0003049      .14645
       1  0  |   .0435708   .0105245     4.14   0.000     .0229431    .0641984
       1  1  |   .0461781   .0090451     5.11   0.000     .0284501    .0639062
       1  2  |   .0447058   .0097735     4.57   0.000     .0255501    .0638614
       1  3  |   .0418051   .0116604     3.59   0.000     .0189513     .064659
       1  4  |   .0611825   .0142852     4.28   0.000      .033184     .089181
       1  5  |   .0611825   .0142852     4.28   0.000      .033184     .089181
       1  6  |    .062609   .0148222     4.22   0.000      .033558      .09166
       1  7  |    .062609   .0148222     4.22   0.000      .033558      .09166
       1  8  |   .1098518   .0486034     2.26   0.024     .0145909    .2051127
       1  9  |   .1120967   .0489146     2.29   0.022     .0162259    .2079676
       1 10  |   .1120967   .0489146     2.29   0.022     .0162259    .2079676
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       840
Group variable: diffid                          Number of groups   =        84

R-sq:  within  = 0.3077                         Obs per group: min =         4
       between = 0.0535                                        avg =      10.0
       overall = 0.1361                                        max =        11

                                                F(20,25)           =     23.67
corr(u_i, Xb)  = -0.0507                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   polconiii |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0004237   .0148184    -0.03   0.977    -.0309428    .0300954
          1  |  -.0008501   .0085739    -0.10   0.922    -.0185083    .0168081
          3  |    .024761    .010261     2.41   0.023     .0036281    .0458939
          4  |   .0515406   .0235926     2.18   0.039     .0029507    .1001306
          5  |    .043397   .0170136     2.55   0.017     .0083569    .0784371
          6  |   .0694908   .0258952     2.68   0.013     .0161587     .122823
          7  |    .063705   .0291816     2.18   0.039     .0036044    .1238057
          8  |   .0629093   .0308307     2.04   0.052    -.0005877    .1264063
          9  |    .060831   .0371572     1.64   0.114    -.0156958    .1373577
         10  |   .0653711   .0431925     1.51   0.143    -.0235856    .1543277
             |
  revny#year |
       1  0  |   .0402774   .0285808     1.41   0.171    -.0185858    .0991407
       1  1  |    .016028    .018538     0.86   0.395    -.0221517    .0542077
       1  3  |  -.0304293   .0464874    -0.65   0.519     -.126172    .0653134
       1  4  |   .1014699   .0533849     1.90   0.069    -.0084784    .2114182
       1  5  |   .2230102    .050186     4.44   0.000     .1196502    .3263702
       1  6  |   .2315692   .0496164     4.67   0.000     .1293824     .333756
       1  7  |   .2448776   .0579327     4.23   0.000     .1255629    .3641924
       1  8  |   .2401686   .0555317     4.32   0.000     .1257989    .3545383
       1  9  |   .1740384   .0599407     2.90   0.008     .0505883    .2974886
       1 10  |   .1781028   .0690027     2.58   0.016     .0359891    .3202164
             |
       _cons |   .1269546   .0179133     7.09   0.000     .0900616    .1638477
-------------+----------------------------------------------------------------
     sigma_u |   .1678707
     sigma_e |  .14127956
         rho |  .58538195   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        840
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .1265309   .0201835     6.27   0.000      .086972    .1660898
       0  1  |   .1261045   .0181648     6.94   0.000     .0905021    .1617069
       0  2  |   .1269546   .0179133     7.09   0.000     .0918453     .162064
       0  3  |   .1517157   .0184406     8.23   0.000     .1155728    .1878585
       0  4  |   .1784953   .0196063     9.10   0.000     .1400676    .2169229
       0  5  |   .1703517   .0151935    11.21   0.000      .140573    .2001304
       0  6  |   .1964455   .0206128     9.53   0.000     .1560451    .2368458
       0  7  |   .1906597   .0235969     8.08   0.000     .1444106    .2369088
       0  8  |   .1898639    .023764     7.99   0.000     .1432874    .2364405
       0  9  |   .1877856   .0300896     6.24   0.000     .1288111    .2467602
       0 10  |   .1923257   .0379816     5.06   0.000      .117883    .2667684
       1  0  |   .1668084   .0329573     5.06   0.000     .1022132    .2314035
       1  1  |   .1421325   .0266028     5.34   0.000      .089992    .1942729
       1  2  |   .1269546   .0179133     7.09   0.000     .0918453     .162064
       1  3  |   .1212864   .0393676     3.08   0.002     .0441272    .1984455
       1  4  |   .2799652    .042991     6.51   0.000     .1957043     .364226
       1  5  |   .3933618   .0392871    10.01   0.000     .3163606    .4703631
       1  6  |   .4280147   .0381997    11.20   0.000     .3531447    .5028847
       1  7  |   .4355373   .0419933    10.37   0.000     .3532321    .5178426
       1  8  |   .4300325   .0415801    10.34   0.000      .348537    .5115281
       1  9  |   .3618241   .0457484     7.91   0.000     .2721589    .4514892
       1 10  |   .3704285   .0474577     7.81   0.000      .277413    .4634439
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 58 matched cases

. 
. *=====================================================================
. * HIGHER LEVELS OF CORRUPTION IN URBAN CIVIC REVOLUTIONS (FIGURE 9.7) 
. *    AND INFLUENCE ON ECONOMIC GROWTH
. *=====================================================================
. * Figure 9.7: continuing high levels of corruption after revolution
. clear

. use simplediffindifflong.dta, clear

. * Multiple imputation
. global yvar = "vdcorr"

. quietly: chp9simpmultimp

. * Successful social vs. failed social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        594

Group variable: revid                           Number of groups  =         54
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0997
                                                Largest FMI       =     0.0870
                                                Complete DF       =         53
DF adjustment:   Small sample                   DF:     min       =      45.36
                                                        avg       =      50.63
                                                        max       =      51.11
Model F test:       Equal FMI                   F(  20,   50.5)   =       1.39
Within VCE type:       Robust                   Prob > F          =     0.1727

                                (Within VCE adjusted for 54 clusters in revid)
------------------------------------------------------------------------------
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0134613   .0084393    -1.60   0.117     -.030403    .0034803
          1  |  -.0075503   .0054207    -1.39   0.170    -.0184322    .0033316
          3  |    .015219   .0199227     0.76   0.448    -.0247754    .0552134
          4  |   .0160876   .0200424     0.80   0.426    -.0241471    .0563223
          5  |   .0208558   .0193677     1.08   0.287    -.0180246    .0597362
          6  |   .0185637   .0190968     0.97   0.336    -.0197727    .0569001
          7  |   .0207609   .0191751     1.08   0.284    -.0177327    .0592546
          8  |   .0213281   .0198391     1.08   0.287    -.0184986    .0611548
          9  |   .0184858   .0202413     0.91   0.365    -.0221482    .0591198
         10  |   .0271101   .0205948     1.32   0.194    -.0142336    .0684538
             |
success#year |
       1  0  |   .0131117   .0093649     1.40   0.168    -.0057305    .0319539
       1  1  |   .0108888    .006301     1.73   0.091    -.0017994    .0235769
       1  3  |  -.0975744   .0475217    -2.05   0.045    -.1929732   -.0021755
       1  4  |  -.1301395   .0691443    -1.88   0.066    -.2689454    .0086664
       1  5  |  -.1363718   .0689042    -1.98   0.053    -.2746958    .0019522
       1  6  |  -.1346445   .0688046    -1.96   0.056    -.2727685    .0034794
       1  7  |  -.1346983   .0684308    -1.97   0.054     -.272072    .0026754
       1  8  |  -.1084502   .0688551    -1.58   0.121    -.2466755    .0297751
       1  9  |  -.0988172   .0682268    -1.45   0.154    -.2357813    .0381469
       1 10  |  -.0922039   .0707094    -1.30   0.198    -.2341517    .0497439
             |
       _cons |   .5156505   .0154539    33.37   0.000     .4846271    .5466739
-------------+----------------------------------------------------------------
     sigma_u |  .23865465
     sigma_e |  .08413209
         rho |  .88946216   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        594
                                                Average RVI       =     0.2155
                                                Largest FMI       =     0.0251
                                                Complete DF       =         53
DF adjustment:   Small sample                   DF:     min       =      49.79
                                                        avg       =      51.01
Within VCE type: Delta-method                           max       =      51.11

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5021892   .0172677    29.08   0.000     .4675245    .5368539
          2  |   .5081002   .0164235    30.94   0.000     .4751303    .5410701
          3  |   .5156505   .0154539    33.37   0.000     .4846271    .5466739
          4  |   .5308695   .0160697    33.04   0.000     .4986098    .5631291
          5  |   .5317381   .0157617    33.74   0.000     .5000967    .5633795
          6  |   .5365063   .0149195    35.96   0.000     .5065558    .5664568
          7  |   .5342142   .0148321    36.02   0.000     .5044389    .5639895
          8  |   .5364114   .0148759    36.06   0.000     .5065483    .5662745
          9  |   .5369785   .0153541    34.97   0.000     .5061555    .5678016
         10  |   .5341363   .0156983    34.03   0.000     .5026221    .5656504
         11  |   .5427606   .0161147    33.68   0.000     .5104107    .5751105
         12  |   .5153008   .0157301    32.76   0.000     .4837027    .5468989
         13  |   .5189889   .0155766    33.32   0.000     .4877081    .5502697
         14  |   .5156505   .0154539    33.37   0.000     .4846271    .5466739
         15  |   .4332951   .0355888    12.18   0.000     .3618512     .504739
         16  |   .4015986    .055753     7.20   0.000     .2896754    .5135217
         17  |   .4001345   .0557135     7.18   0.000     .2882907    .5119783
         18  |   .3995697   .0556883     7.18   0.000     .2877764    .5113629
         19  |   .4017131   .0552533     7.27   0.000     .2907931    .5126332
         20  |   .4285283   .0555973     7.71   0.000     .3169178    .5401388
         21  |   .4353191   .0548482     7.94   0.000     .3252123    .5454259
         22  |   .4505567   .0580523     7.76   0.000     .3340177    .5670956
------------------------------------------------------------------------------

. * Results loaded into MS Excel and graphed
. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==1

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         40       74.07       74.07
          1 |         14       25.93      100.00
------------+-----------------------------------
      Total |         54      100.00

. * Successful urban civic vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if urbancivic==1, fe vce(robus
> t)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        539

Group variable: revid                           Number of groups  =         49
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1395
                                                Largest FMI       =     0.0846
                                                Complete DF       =         48
DF adjustment:   Small sample                   DF:     min       =      41.27
                                                        avg       =      45.42
                                                        max       =      46.12
Model F test:       Equal FMI                   F(  20,   45.3)   =       1.91
Within VCE type:       Robust                   Prob > F          =     0.0358

                                (Within VCE adjusted for 49 clusters in revid)
------------------------------------------------------------------------------
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0107733   .0078244    -1.38   0.175     -.026522    .0049754
          1  |  -.0020519    .002801    -0.73   0.468    -.0076895    .0035857
          3  |   .0205324   .0095729     2.14   0.037     .0012644    .0398004
          4  |   .0117585   .0112804     1.04   0.303    -.0109462    .0344631
          5  |   .0046104   .0153443     0.30   0.765     -.026274    .0354948
          6  |  -.0045286   .0196771    -0.23   0.819    -.0441339    .0350767
          7  |  -.0190205   .0273396    -0.70   0.490    -.0740566    .0360157
          8  |  -.0198474   .0273252    -0.73   0.471    -.0749003    .0352054
          9  |  -.0167528   .0321688    -0.52   0.605    -.0816069    .0481013
         10  |   -.022619   .0328572    -0.69   0.495    -.0889624    .0437244
             |
success#year |
       1  0  |   .0119613     .00944     1.27   0.211    -.0070392    .0309618
       1  1  |   .0031618   .0064095     0.49   0.624     -.009739    .0160626
       1  3  |  -.0559986   .0310753    -1.80   0.078    -.1185456    .0065484
       1  4  |  -.0893925   .0391564    -2.28   0.027    -.1682049   -.0105801
       1  5  |  -.0820959   .0421141    -1.95   0.057    -.1668638    .0026721
       1  6  |  -.0664219   .0462727    -1.44   0.158    -.1595631    .0267193
       1  7  |  -.0506373   .0508099    -1.00   0.324    -.1529319    .0516572
       1  8  |   -.044748   .0510127    -0.88   0.385    -.1474873    .0579913
       1  9  |  -.0455831   .0555003    -0.82   0.416      -.15739    .0662238
       1 10  |  -.0321444   .0559242    -0.57   0.568    -.1448541    .0805654
             |
       _cons |   .7012511   .0177136    39.59   0.000     .6655979    .7369043
-------------+----------------------------------------------------------------
     sigma_u |  .20460365
     sigma_e |   .0963782
         rho |  .81840662   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        539
                                                Average RVI       =     4.3346
                                                Largest FMI       =     0.0869
                                                Complete DF       =         48
DF adjustment:   Small sample                   DF:     min       =      41.11
                                                        avg       =      45.33
Within VCE type: Delta-method                           max       =      46.12

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .6904778   .0191924    35.98   0.000     .6518482    .7291073
          2  |   .6991992    .017753    39.38   0.000     .6634667    .7349317
          3  |   .7012511   .0177136    39.59   0.000     .6655979    .7369043
          4  |   .7217835   .0180619    39.96   0.000     .6854292    .7581378
          5  |   .7130096   .0185129    38.51   0.000     .6757477    .7502715
          6  |   .7058615   .0199393    35.40   0.000     .6657286    .7459943
          7  |   .6967225   .0220238    31.63   0.000     .6523939    .7410512
          8  |   .6822306   .0273129    24.98   0.000     .6272481    .7372131
          9  |   .6814037   .0274165    24.85   0.000     .6261673      .73664
         10  |   .6844983   .0315139    21.72   0.000      .620959    .7480376
         11  |   .6786321   .0324149    20.94   0.000      .613174    .7440902
         12  |   .7024391   .0188295    37.31   0.000     .6645398    .7403383
         13  |    .702361   .0186743    37.61   0.000     .6647742    .7399479
         14  |   .7012511   .0177136    39.59   0.000     .6655979    .7369043
         15  |   .6657849   .0214359    31.06   0.000     .6226396    .7089302
         16  |   .6236171   .0223051    27.96   0.000     .5787223    .6685118
         17  |   .6237656   .0236458    26.38   0.000     .5761678    .6713634
         18  |   .6303006   .0260743    24.17   0.000     .5778092     .682792
         19  |   .6315933   .0270753    23.33   0.000     .5770612    .6861254
         20  |   .6366557   .0271908    23.41   0.000     .5818926    .6914188
         21  |   .6389152   .0299909    21.30   0.000      .578444    .6993863
         22  |   .6464877   .0300659    21.50   0.000     .5858917    .7070837
------------------------------------------------------------------------------

. * Results loaded into MS Excel and graphed
. mi xeq 1: tab success if e(N_mi) & year==2 & urbancivic==1

m=1 data:
-> tab success if e(N_mi) & year==2 & urbancivic==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         20       40.82       40.82
          1 |         29       59.18      100.00
------------+-----------------------------------
      Total |         49      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 2.9 percent of observations

. * Complete case sample as robustness test
. clear

. use simplediffindifflong.dta, clear

. xtreg $yvar i.success##ib(2).year if leftist==1, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        592
Group variable: revid                           Number of groups  =         54

R-sq:                                           Obs per group:
     within  = 0.0988                                         min =          9
     between = 0.0018                                         avg =       11.0
     overall = 0.0075                                         max =         11

                                                F(20,53)          =       2.01
corr(u_i, Xb)  = -0.0979                        Prob > F          =     0.0221

                                 (Std. Err. adjusted for 54 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0134613   .0084398    -1.59   0.117    -.0303893    .0034667
          1  |  -.0075503    .005421    -1.39   0.169    -.0184234    .0033228
          3  |    .015219   .0199238     0.76   0.448    -.0247432    .0551812
          4  |   .0160876   .0200436     0.80   0.426    -.0241147    .0562899
          5  |   .0208558   .0193689     1.08   0.286    -.0179932    .0597048
          6  |   .0185637   .0190979     0.97   0.335    -.0197418    .0568692
          7  |   .0207609   .0191762     1.08   0.284    -.0177017    .0592236
          8  |   .0213281   .0198403     1.07   0.287    -.0184666    .0611227
          9  |   .0184858   .0202425     0.91   0.365    -.0221154     .059087
         10  |   .0271101    .020596     1.32   0.194    -.0142003    .0684205
             |
success#year |
       1  0  |   .0174892   .0096372     1.81   0.075    -.0018406    .0368191
       1  1  |   .0132457   .0074128     1.79   0.080    -.0016224    .0281139
       1  3  |  -.0975744   .0475245    -2.05   0.045    -.1928964   -.0022524
       1  4  |  -.1301395   .0691484    -1.88   0.065    -.2688336    .0085546
       1  5  |  -.1363718   .0689083    -1.98   0.053    -.2745843    .0018408
       1  6  |  -.1346445   .0688087    -1.96   0.056    -.2726573    .0033682
       1  7  |  -.1346983   .0684349    -1.97   0.054    -.2719613    .0025647
       1  8  |  -.1084502   .0688591    -1.57   0.121    -.2465641    .0296638
       1  9  |  -.0988172   .0682309    -1.45   0.153     -.235671    .0380366
       1 10  |  -.0922039   .0707136    -1.30   0.198    -.2340374    .0496295
             |
       _cons |   .5163872   .0153756    33.58   0.000     .4855476    .5472267
-------------+----------------------------------------------------------------
     sigma_u |  .23847018
     sigma_e |  .08423872
         rho |  .88906039   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        592
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   .5029258   .0171967    29.25   0.000     .4692209    .5366308
       0  1  |   .5088369   .0163501    31.12   0.000     .4767912    .5408825
       0  2  |   .5163872   .0153756    33.58   0.000     .4862516    .5465228
       0  3  |   .5316062   .0159546    33.32   0.000     .5003358    .5628766
       0  4  |   .5324748   .0156427    34.04   0.000     .5018156    .5631339
       0  5  |    .537243   .0147936    36.32   0.000      .508248     .566238
       0  6  |   .5349509   .0147065    36.38   0.000     .5061267     .563775
       0  7  |   .5371481   .0147504    36.42   0.000     .5082378    .5660584
       0  8  |   .5377152   .0152313    35.30   0.000     .5078624    .5675681
       0  9  |    .534873   .0155777    34.34   0.000     .5043411    .5654048
       0 10  |   .5434973   .0159971    33.97   0.000     .5121435    .5748511
       1  0  |   .5204151   .0184512    28.20   0.000     .4842513    .5565788
       1  1  |   .5220826   .0186434    28.00   0.000     .4855422     .558623
       1  2  |   .5163872   .0153756    33.58   0.000     .4862516    .5465228
       1  3  |   .4340318   .0356564    12.17   0.000     .3641464    .5039171
       1  4  |   .4023353    .055895     7.20   0.000      .292783    .5118875
       1  5  |   .4008712    .055855     7.18   0.000     .2913974     .510345
       1  6  |   .4003063   .0558314     7.17   0.000     .2908788    .5097339
       1  7  |   .4024498   .0553977     7.26   0.000     .2938722    .5110274
       1  8  |    .429265   .0557461     7.70   0.000     .3200048    .5385253
       1  9  |   .4360557   .0549982     7.93   0.000     .3282612    .5438503
       1 10  |   .4512933   .0581942     7.75   0.000     .3372348    .5653519
------------------------------------------------------------------------------

. xtreg $yvar i.success##ib(2).year if urbancivic==1, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        508
Group variable: revid                           Number of groups  =         49

R-sq:                                           Obs per group:
     within  = 0.0718                                         min =          5
     between = 0.0016                                         avg =       10.4
     overall = 0.0037                                         max =         11

                                                F(20,48)          =       2.42
corr(u_i, Xb)  = -0.0966                        Prob > F          =     0.0062

                                 (Std. Err. adjusted for 49 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0107733   .0078337    -1.38   0.175     -.026524    .0049774
          1  |  -.0020519   .0028043    -0.73   0.468    -.0076902    .0035865
          3  |   .0205324   .0095843     2.14   0.037      .001262    .0398028
          4  |   .0117585   .0112937     1.04   0.303    -.0109491     .034466
          5  |   .0046104   .0153625     0.30   0.765     -.026278    .0354987
          6  |  -.0045286   .0197004    -0.23   0.819    -.0441389    .0350817
          7  |   -.010031   .0253318    -0.40   0.694     -.060964     .040902
          8  |  -.0162109   .0246193    -0.66   0.513    -.0657113    .0332895
          9  |  -.0103164   .0297483    -0.35   0.730    -.0701293    .0494965
         10  |   -.022852   .0327139    -0.70   0.488    -.0886277    .0429238
             |
success#year |
       1  0  |   .0119613   .0094512     1.27   0.212    -.0070416    .0309642
       1  1  |   .0031618   .0064171     0.49   0.624    -.0097406    .0160643
       1  3  |  -.0559986    .031112    -1.80   0.078    -.1185535    .0065563
       1  4  |  -.0893925   .0392027    -2.28   0.027    -.1682149   -.0105701
       1  5  |  -.0818992   .0430542    -1.90   0.063    -.1684655     .004667
       1  6  |  -.0663141     .04722    -1.40   0.167    -.1612562     .028628
       1  7  |  -.0581875    .052085    -1.12   0.269    -.1629114    .0465364
       1  8  |  -.0467959   .0517924    -0.90   0.371    -.1509315    .0573397
       1  9  |  -.0518506   .0570939    -0.91   0.368    -.1666455    .0629443
       1 10  |  -.0270014   .0589015    -0.46   0.649    -.1454309    .0914281
             |
       _cons |   .7073163   .0173969    40.66   0.000     .6723375     .742295
-------------+----------------------------------------------------------------
     sigma_u |  .20477154
     sigma_e |  .09673279
         rho |   .8175573   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        508
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |    .696543   .0190277    36.61   0.000     .6592494    .7338365
       0  1  |   .7052644   .0175915    40.09   0.000     .6707856    .7397432
       0  2  |   .7073163   .0173969    40.66   0.000     .6732191    .7414135
       0  3  |   .7278487   .0178319    40.82   0.000     .6928988    .7627985
       0  4  |   .7190747   .0184195    39.04   0.000     .6829732    .7551763
       0  5  |   .7119267   .0202993    35.07   0.000     .6721408    .7517125
       0  6  |   .7027877   .0224621    31.29   0.000     .6587629    .7468125
       0  7  |   .6972852   .0260999    26.72   0.000     .6461304    .7484401
       0  8  |   .6911054   .0256754    26.92   0.000     .6407824    .7414283
       0  9  |   .6969999   .0298423    23.36   0.000     .6385101    .7554897
       0 10  |   .6844643      .0326    21.00   0.000     .6205695    .7483592
       1  0  |   .7085042   .0187169    37.85   0.000     .6718197    .7451888
       1  1  |   .7084262   .0185799    38.13   0.000     .6720103    .7448421
       1  2  |   .7073163   .0173969    40.66   0.000     .6732191    .7414135
       1  3  |   .6718501   .0212535    31.61   0.000     .6301941    .7135061
       1  4  |   .6296822   .0223236    28.21   0.000     .5859287    .6734357
       1  5  |   .6300274   .0246025    25.61   0.000     .5818074    .6782475
       1  6  |   .6364736   .0271247    23.46   0.000     .5833102     .689637
       1  7  |   .6390978   .0297141    21.51   0.000     .5808592    .6973363
       1  8  |   .6443095   .0297679    21.64   0.000     .5859654    .7026535
       1  9  |   .6451493   .0331947    19.44   0.000      .580089    .7102096
       1 10  |   .6574629   .0340566    19.31   0.000     .5907132    .7242126
------------------------------------------------------------------------------

. 
. * Matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdcorr"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0070499   .0064623    -1.09   0.314    -.0225486    .0084488
          1  |  -.0000706   .0041732    -0.02   0.987    -.0100792    .0099381
          3  |  -.0147115   .0154411    -0.95   0.375    -.0517442    .0223212
          4  |   -.013902   .0154683    -0.90   0.401    -.0509999    .0231959
          5  |  -.0144537   .0155162    -0.93   0.385    -.0516667    .0227592
          6  |  -.0141605   .0179411    -0.79   0.458    -.0571891    .0288681
          7  |  -.0081919   .0215432    -0.38   0.716    -.0598594    .0434756
          8  |  -.0059316   .0202727    -0.29   0.779     -.054552    .0426888
          9  |   .0081824   .0203901     0.40   0.701    -.0407196    .0570844
         10  |   .0106096   .0201321     0.53   0.616    -.0376737    .0588929
             |
  revny#year |
       1  0  |    .009508   .0076378     1.24   0.256    -.0088099    .0278258
       1  1  |   .0049373   .0066397     0.74   0.483    -.0109869    .0208615
       1  3  |  -.0787071   .0597884    -1.32   0.232     -.222099    .0646848
       1  4  |  -.1398952   .0879375    -1.59   0.159    -.3507979    .0710074
       1  5  |  -.1411367   .0877069    -1.61   0.155    -.3514863    .0692128
       1  6  |    -.14143   .0863904    -1.64   0.149     -.348622     .065762
       1  7  |  -.1462973   .0806805    -1.81   0.116    -.3397952    .0472006
       1  8  |  -.1365154   .0850064    -1.61   0.155    -.3403883    .0673574
       1  9  |  -.1400661   .0919364    -1.52   0.174    -.3605592     .080427
       1 10  |  -.1424933   .0914497    -1.56   0.166    -.3618193    .0768327
             |
       _cons |   .6415186   .0355073    18.07   0.000     .5563608    .7266765
-------------+----------------------------------------------------------------
     sigma_u |  .21071808
     sigma_e |   .0963876
         rho |  .82696767   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .6344687   .0365916    17.34   0.000     .5467103    .7222272
          2  |   .6414481   .0368312    17.42   0.000     .5531149    .7297813
          3  |   .6415186   .0355073    18.07   0.000     .5563608    .7266765
          4  |   .6268072   .0345974    18.12   0.000     .5438315    .7097829
          5  |   .6276166   .0295394    21.25   0.000     .5567715    .6984617
          6  |   .6270649   .0302564    20.73   0.000     .5545002    .6996296
          7  |   .6273582   .0291926    21.49   0.000     .5573448    .6973715
          8  |   .6333268   .0233361    27.14   0.000     .5773593    .6892943
          9  |   .6355871   .0249854    25.44   0.000     .5756639    .6955102
         10  |   .6497011   .0331708    19.59   0.000     .5701468    .7292553
         11  |   .6521282   .0326014    20.00   0.000     .5739396    .7303169
         12  |   .6439767   .0346046    18.61   0.000     .5609837    .7269698
         13  |   .6463854   .0346473    18.66   0.000       .56329    .7294808
         14  |   .6415186   .0355073    18.07   0.000     .5563608    .7266765
         15  |   .5481001   .0325133    16.86   0.000     .4701228    .6260774
         16  |   .4877214   .0593508     8.22   0.000     .3453789    .6300639
         17  |   .4859282   .0586016     8.29   0.000     .3453827    .6264737
         18  |   .4859282   .0586016     8.29   0.000     .3453827    .6264737
         19  |   .4870295   .0584851     8.33   0.000     .3467633    .6272957
         20  |   .4990716   .0617533     8.08   0.000     .3509672    .6471761
         21  |    .509635   .0610816     8.34   0.000     .3631415    .6561284
         22  |    .509635   .0610816     8.34   0.000     .3631415    .6561284
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3241
                                                Largest FMI       =     0.1306
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.92
                                                        avg       =      22.65
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.6)   =       2.52
Within VCE type:       Robust                   Prob > F          =     0.0195

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0101999   .0086865    -1.17   0.252    -.0281601    .0077604
          1  |  -.0073904   .0053715    -1.38   0.182    -.0184965    .0037156
          3  |   .0012458   .0035423     0.35   0.728    -.0060781    .0085698
          4  |  -.0074681   .0060826    -1.23   0.232    -.0200444    .0051082
          5  |  -.0027706   .0080191    -0.35   0.733    -.0193509    .0138096
          6  |   .0084261   .0111938     0.75   0.459    -.0147196    .0315717
          7  |   .0071816   .0118285     0.61   0.550    -.0173365    .0316996
          8  |   .0096555   .0128781     0.75   0.462    -.0171109    .0364219
          9  |   .0091743   .0132571     0.69   0.496    -.0183945    .0367432
         10  |   .0058773    .013945     0.42   0.678    -.0232186    .0349732
             |
  revny#year |
       1  0  |   .0132933   .0085896     1.55   0.135    -.0044666    .0310533
       1  1  |   .0101349   .0076718     1.32   0.199    -.0057274    .0259973
       1  3  |  -.0551206   .0278657    -1.98   0.060    -.1127357    .0024946
       1  4  |  -.0760883   .0257259    -2.96   0.007    -.1292792   -.0228974
       1  5  |  -.0734762   .0329279    -2.23   0.036    -.1415632   -.0053891
       1  6  |  -.0796288   .0350997    -2.27   0.033    -.1522213   -.0070363
       1  7  |  -.0783791   .0360808    -2.17   0.040    -.1530349   -.0037233
       1  8  |  -.0740914   .0356822    -2.08   0.049    -.1479425   -.0002404
       1  9  |   -.072899   .0388868    -1.87   0.074    -.1534968    .0076988
       1 10  |  -.0701653    .039968    -1.76   0.093    -.1530883    .0127576
             |
       _cons |   .6927901    .009202    75.29   0.000      .673764    .7118162
-------------+----------------------------------------------------------------
     sigma_u |  .21030436
     sigma_e |  .06653124
         rho |  .90902339   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     5.3244
                                                Largest FMI       =     0.1070
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.61
                                                        avg       =      22.67
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .6825902   .0136207    50.11   0.000     .6544281    .7107523
          2  |   .6853997   .0115854    59.16   0.000     .6614457    .7093537
          3  |   .6927901    .009202    75.29   0.000      .673764    .7118162
          4  |   .6940359   .0100168    69.29   0.000     .6733252    .7147467
          5  |    .685322   .0106233    64.51   0.000     .6633573    .7072866
          6  |   .6900195   .0135657    50.87   0.000     .6619711    .7180678
          7  |   .7012162    .015122    46.37   0.000      .669949    .7324834
          8  |   .6999717   .0156075    44.85   0.000     .6676577    .7322856
          9  |   .7024456   .0162674    43.18   0.000     .6687099    .7361813
         10  |   .7019644   .0167516    41.90   0.000     .6672145    .7367144
         11  |   .6986674   .0172221    40.57   0.000     .6628691    .7344657
         12  |   .6958836   .0102149    68.12   0.000     .6747633    .7170038
         13  |   .6955346    .010372    67.06   0.000     .6740895    .7169797
         14  |   .6927901    .009202    75.29   0.000      .673764    .7118162
         15  |   .6389154   .0197472    32.35   0.000     .5980861    .6797446
         16  |   .6092337   .0172041    35.41   0.000     .5736625    .6448048
         17  |   .6165433    .020173    30.56   0.000      .574825    .6582616
         18  |   .6215874   .0209581    29.66   0.000     .5782226    .6649521
         19  |   .6215926   .0217313    28.60   0.000     .5765745    .6666106
         20  |   .6283542   .0209157    30.04   0.000     .5849805    .6717278
         21  |   .6290654   .0242816    25.91   0.000      .578612    .6795188
         22  |    .628502   .0256577    24.50   0.000     .5750819    .6819222
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.2162                         Obs per group: min =        11
       between = 0.0267                                        avg =      11.0
       overall = 0.0459                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0292                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0070499   .0064623    -1.09   0.307     -.021952    .0078522
          1  |  -.0000706   .0041732    -0.02   0.987    -.0096939    .0095528
          3  |  -.0147115   .0154411    -0.95   0.369    -.0503187    .0208957
          4  |   -.013902   .0154683    -0.90   0.395    -.0495719    .0217679
          5  |  -.0144537   .0155162    -0.93   0.379    -.0502342    .0213268
          6  |  -.0141605   .0179411    -0.79   0.453    -.0555328    .0272118
          7  |  -.0081919   .0215432    -0.38   0.714    -.0578705    .0414868
          8  |  -.0059316   .0202727    -0.29   0.777    -.0526805    .0408173
          9  |   .0081824   .0203901     0.40   0.699    -.0388372     .055202
         10  |   .0106096   .0201321     0.53   0.612    -.0358151    .0570343
             |
  revny#year |
       1  0  |    .009508   .0076378     1.24   0.248    -.0081047    .0271207
       1  1  |   .0049373   .0066397     0.74   0.478    -.0103739    .0202485
       1  3  |  -.0787071   .0597884    -1.32   0.224    -.2165793    .0591651
       1  4  |  -.1398952   .0879375    -1.59   0.150    -.3426795    .0628891
       1  5  |  -.1411367   .0877069    -1.61   0.146    -.3433893    .0611158
       1  6  |    -.14143   .0863904    -1.64   0.140    -.3406465    .0577866
       1  7  |  -.1462973   .0806805    -1.81   0.107    -.3323469    .0397522
       1  8  |  -.1365154   .0850064    -1.61   0.147    -.3325406    .0595097
       1  9  |  -.1400661   .0919364    -1.52   0.166    -.3520717    .0719395
       1 10  |  -.1424933   .0914497    -1.56   0.158    -.3533767    .0683901
             |
       _cons |   .6415186   .0355073    18.07   0.000     .5596388    .7233985
-------------+----------------------------------------------------------------
     sigma_u |  .21071808
     sigma_e |   .0963876
         rho |  .82696767   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .6344687   .0365916    17.34   0.000     .5627506    .7061869
       0  1  |   .6414481   .0368312    17.42   0.000     .5692602     .713636
       0  2  |   .6415186   .0355073    18.07   0.000     .5719257    .7111116
       0  3  |   .6268072   .0345974    18.12   0.000     .5589976    .6946168
       0  4  |   .6276166   .0295394    21.25   0.000     .5697204    .6855129
       0  5  |   .6270649   .0302564    20.73   0.000     .5677634    .6863664
       0  6  |   .6273582   .0291926    21.49   0.000     .5701416    .6845747
       0  7  |   .6333268   .0233361    27.14   0.000     .5875889    .6790647
       0  8  |   .6355871   .0249854    25.44   0.000     .5866165    .6845576
       0  9  |   .6497011   .0331708    19.59   0.000     .5846876    .7147146
       0 10  |   .6521282   .0326014    20.00   0.000     .5882307    .7160258
       1  0  |   .6439767   .0346046    18.61   0.000      .576153    .7118005
       1  1  |   .6463854   .0346473    18.66   0.000      .578478    .7142928
       1  2  |   .6415186   .0355073    18.07   0.000     .5719257    .7111116
       1  3  |   .5481001   .0325133    16.86   0.000     .4843753    .6118249
       1  4  |   .4877214   .0593508     8.22   0.000     .3713959    .6040469
       1  5  |   .4859282   .0586016     8.29   0.000     .3710713    .6007851
       1  6  |   .4859282   .0586016     8.29   0.000     .3710713    .6007851
       1  7  |   .4870295   .0584851     8.33   0.000     .3724008    .6016582
       1  8  |   .4990716   .0617533     8.08   0.000     .3780373    .6201059
       1  9  |    .509635   .0610816     8.34   0.000     .3899172    .6293527
       1 10  |    .509635   .0610816     8.34   0.000     .3899172    .6293527
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], fe cluster(revid)
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.1259                         Obs per group: min =         5
       between = 0.0050                                        avg =      10.4
       overall = 0.0000                                        max =        11

                                                F(20,25)           =     13.60
corr(u_i, Xb)  = -0.1497                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdcorr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0102021   .0086988    -1.17   0.252    -.0281176    .0077135
          1  |  -.0073912    .005379    -1.37   0.182    -.0184694    .0036871
          3  |   .0012428   .0035471     0.35   0.729    -.0060627    .0085483
          4  |  -.0074776   .0060904    -1.23   0.231    -.0200211    .0050658
          5  |  -.0027846   .0080289    -0.35   0.732    -.0193205    .0137513
          6  |    .008445   .0112873     0.75   0.461    -.0148017    .0316918
          7  |   .0117396   .0117135     1.00   0.326    -.0123849     .035864
          8  |   .0150471   .0123064     1.22   0.233    -.0102985    .0403927
          9  |   .0188187   .0117828     1.60   0.123    -.0054485    .0430858
         10  |   .0139427      .0132     1.06   0.301    -.0132431    .0411285
             |
  revny#year |
       1  0  |   .0132955   .0086004     1.55   0.135    -.0044174    .0310085
       1  1  |   .0101357   .0076792     1.32   0.199      -.00568    .0259513
       1  3  |  -.0551175   .0278843    -1.98   0.059    -.1125463    .0023112
       1  4  |  -.0760788   .0257442    -2.96   0.007       -.1291   -.0230576
       1  5  |   -.073554   .0336635    -2.18   0.038    -.1428853   -.0042227
       1  6  |     -.0799   .0358182    -2.23   0.035     -.153669    -.006131
       1  7  |  -.0791266   .0361478    -2.19   0.038    -.1535744   -.0046789
       1  8  |  -.0752352   .0351901    -2.14   0.042    -.1477106   -.0027598
       1  9  |  -.0789551   .0391769    -2.02   0.055    -.1596414    .0017311
       1 10  |  -.0675329   .0372814    -1.81   0.082    -.1443155    .0092497
             |
       _cons |   .7027162   .0089744    78.30   0.000     .6842331    .7211993
-------------+----------------------------------------------------------------
     sigma_u |  .21030725
     sigma_e |  .06624673
         rho |  .90973199   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .6925141   .0134063    51.66   0.000     .6662382      .71879
       0  1  |    .695325   .0113437    61.30   0.000     .6730918    .7175583
       0  2  |   .7027162   .0089744    78.30   0.000     .6851267    .7203057
       0  3  |    .703959   .0097751    72.02   0.000     .6848001    .7231179
       0  4  |   .6952385   .0105374    65.98   0.000     .6745856    .7158915
       0  5  |   .6999316   .0133495    52.43   0.000     .6737672    .7260961
       0  6  |   .7111612   .0148166    48.00   0.000     .6821213    .7402011
       0  7  |   .7144558   .0148283    48.18   0.000     .6853928    .7435188
       0  8  |   .7177633   .0150477    47.70   0.000     .6882703    .7472562
       0  9  |   .7215349   .0149132    48.38   0.000     .6923056    .7507642
       0 10  |   .7166589   .0161198    44.46   0.000     .6850646    .7482532
       1  0  |   .7058097   .0098304    71.80   0.000     .6865423     .725077
       1  1  |   .7054607   .0100018    70.53   0.000     .6858576    .7250638
       1  2  |   .7027162   .0089744    78.30   0.000     .6851267    .7203057
       1  3  |   .6488415   .0198199    32.74   0.000     .6099952    .6876877
       1  4  |   .6191598   .0176208    35.14   0.000     .5846236    .6536959
       1  5  |   .6263776   .0213255    29.37   0.000     .5845805    .6681747
       1  6  |   .6312612   .0219455    28.76   0.000     .5882487    .6742737
       1  7  |   .6353291   .0227649    27.91   0.000     .5907108    .6799474
       1  8  |   .6425281   .0214888    29.90   0.000     .6004108    .6846454
       1  9  |   .6425798   .0261972    24.53   0.000     .5912343    .6939252
       1 10  |    .649126   .0246783    26.30   0.000     .6007573    .6974946
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. * Negative effect of corruption on economic growth after successful revolution
. * Complete case sample
. use simplediffindifflong.dta, clear

. xtreg gdpa1990index vdcorr if success==1 & year>2, fe

Fixed-effects (within) regression               Number of obs     =        314
Group variable: revid                           Number of groups  =         42

R-sq:                                           Obs per group:
     within  = 0.0177                                         min =          3
     between = 0.0118                                         avg =        7.5
     overall = 0.0095                                         max =          8

                                                F(1,271)          =       4.89
corr(u_i, Xb)  = -0.1243                        Prob > F          =     0.0279

------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      vdcorr |  -19.55403   8.843763    -2.21   0.028    -36.96524   -2.142815
       _cons |   116.9694   5.353364    21.85   0.000       106.43    127.5089
-------------+----------------------------------------------------------------
     sigma_u |  19.633373
     sigma_e |   10.28105
         rho |  .78479929   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(41, 271) = 27.81                    Prob > F = 0.0000

. * Negative effect of corruption on growth is especially evident after successful urban civic revolutions
. xtreg gdpa1990index vdcorr if success==1 & urbancivic==0 & year>2, fe

Fixed-effects (within) regression               Number of obs     =        112
Group variable: revid                           Number of groups  =         14

R-sq:                                           Obs per group:
     within  = 0.0198                                         min =          8
     between = 0.0262                                         avg =        8.0
     overall = 0.0157                                         max =          8

                                                F(1,97)           =       1.96
corr(u_i, Xb)  = -0.3334                        Prob > F          =     0.1645

------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      vdcorr |    20.9279   14.94236     1.40   0.165    -8.728553    50.58436
       _cons |   93.25151   7.064562    13.20   0.000     79.23031    107.2727
-------------+----------------------------------------------------------------
     sigma_u |  25.197416
     sigma_e |  10.822725
         rho |  .84424873   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(13, 97) = 38.54                     Prob > F = 0.0000

. xtreg gdpa1990index vdcorr if success==1 & urbancivic==1 & year>2, fe 

Fixed-effects (within) regression               Number of obs     =        202
Group variable: revid                           Number of groups  =         28

R-sq:                                           Obs per group:
     within  = 0.0963                                         min =          3
     between = 0.0166                                         avg =        7.2
     overall = 0.0247                                         max =          8

                                                F(1,173)          =      18.44
corr(u_i, Xb)  = -0.3202                        Prob > F          =     0.0000

------------------------------------------------------------------------------
gdpa1990in~x |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
      vdcorr |  -45.23857   10.53561    -4.29   0.000    -66.03346   -24.44369
       _cons |   136.9834   7.154233    19.15   0.000     122.8626    151.1042
-------------+----------------------------------------------------------------
     sigma_u |  18.644276
     sigma_e |  9.5801363
         rho |  .79112083   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(27, 173) = 24.53                    Prob > F = 0.0000

. 
. 
. *==============================================
. *IMPACT OF REVOLUTION ON INVESTMENT AS % OF GDP
. *==============================================
. * Impact of revolutionary successs/failure on investment
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "investtogdp"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        363

Group variable: revid                           Number of groups  =         33
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1806
                                                Largest FMI       =     0.2242
                                                Complete DF       =         32
                                                DF:     min       =      21.62
                                                        avg       =      28.19
DF adjustment:   Small sample                           max       =      30.17
                                                F(  18,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 33 clusters in revid)
------------------------------------------------------------------------------
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .6638702   1.022652     0.65   0.521    -1.424167    2.751907
          1  |    .288627   .5299431     0.54   0.590    -.7934033    1.370657
          3  |  -2.478512   1.060015    -2.34   0.026    -4.642836   -.3141875
          4  |  -2.913363   1.573287    -1.85   0.075     -6.14205    .3153233
          5  |  -1.535828   1.536206    -1.00   0.328    -4.724954    1.653299
          6  |  -.4010048   1.560262    -0.26   0.799    -3.623366    2.821356
          7  |    .214741   1.856357     0.12   0.909    -3.587805    4.017287
          8  |  -.6669977   1.838017    -0.36   0.719    -4.429284    3.095289
          9  |  -2.007009   2.667022    -0.75   0.459    -7.490465    3.476447
         10  |  -1.077323   2.280074    -0.47   0.641    -5.767173    3.612526
             |
leftist#year |
       1  0  |   .1777424     3.0381     0.06   0.954    -6.051671    6.407156
       1  1  |   2.264773   3.464129     0.65   0.518    -4.808238    9.337783
       1  3  |  -6.793012   3.852689    -1.76   0.088    -14.65938    1.073353
       1  4  |  -.9658957   2.959372    -0.33   0.746    -7.015215    5.083424
       1  5  |  -.7760565   2.994205    -0.26   0.797     -6.90654    5.354427
       1  6  |  -2.182205   3.563511    -0.61   0.545    -9.468599    5.104189
       1  7  |  -1.987855   2.599474    -0.76   0.451    -7.303253    3.327542
       1  8  |  -1.264897   3.058118    -0.41   0.682    -7.513939    4.984145
       1  9  |  -1.530545    4.31781    -0.35   0.726    -10.36509    7.303997
       1 10  |  -4.293263   4.282781    -1.00   0.324    -13.05151    4.464982
             |
       _cons |   23.52513   .9485593    24.80   0.000     21.58838    25.46189
-------------+----------------------------------------------------------------
     sigma_u |  7.3771292
     sigma_e |  5.7607601
         rho |   .6211966   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        363
                                                Average RVI       =    14.7676
                                                Largest FMI       =     0.4323
                                                Complete DF       =         32
DF adjustment:   Small sample                   DF:     min       =      13.93
                                                        avg       =      27.19
Within VCE type: Delta-method                           max       =      30.17

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |     24.189   1.216676    19.88   0.000     21.70481    26.67319
          2  |   23.81376   .9964382    23.90   0.000     21.77925    25.84827
          3  |   23.52513   .9485593    24.80   0.000     21.58838    25.46189
          4  |   21.04662   1.042687    20.18   0.000     18.91768    23.17556
          5  |   20.61177   1.186826    17.37   0.000     18.16186    23.06168
          6  |   21.98931   1.106424    19.87   0.000     19.61521     24.3634
          7  |   23.12413   1.075771    21.50   0.000     20.84474    25.40352
          8  |   23.73987   1.253434    18.94   0.000     21.15757    26.32218
          9  |   22.85814   1.242766    18.39   0.000     20.30357     25.4127
         10  |   21.51812   2.078915    10.35   0.000     17.21328    25.82297
         11  |   22.44781   1.692456    13.26   0.000     18.93143    25.96419
         12  |   24.36675   2.861425     8.52   0.000     18.49551    30.23798
         13  |   26.07853   3.547892     7.35   0.000      18.8345    33.32257
         14  |   23.52513   .9485593    24.80   0.000     21.58838    25.46189
         15  |   14.25361   3.431388     4.15   0.000      7.24745    21.25977
         16  |   19.64587   2.503199     7.85   0.000     14.53488    24.75687
         17  |   21.21325   2.403509     8.83   0.000      16.3058     26.1207
         18  |   20.94192   2.893538     7.24   0.000     15.03394    26.84991
         19  |   21.75202   1.638861    13.27   0.000     18.40581    25.09822
         20  |   21.59324   2.196728     9.83   0.000     17.10799    26.07849
         21  |   19.98758   3.114942     6.42   0.000     13.62753    26.34762
         22  |   18.15455   3.320856     5.47   0.000     11.37407    24.93502
------------------------------------------------------------------------------

. mi xeq 1: tab success if e(N_mi) & year==2 & success==1

m=1 data:
-> tab success if e(N_mi) & year==2 & success==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |         33      100.00      100.00
------------+-----------------------------------
      Total |         33      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 7.7 percent of observations

. * Complete case sample as robustness test
. clear

. use simplediffindifflong.dta, clear

. xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        350
Group variable: revid                           Number of groups  =         36

R-sq:                                           Obs per group:
     within  = 0.1115                                         min =          2
     between = 0.0124                                         avg =        9.7
     overall = 0.0472                                         max =         11

                                                F(19,35)          =          .
corr(u_i, Xb)  = -0.0074                        Prob > F          =          .

                                 (Std. Err. adjusted for 36 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .6638702   1.022437     0.65   0.520    -1.411788    2.739529
          1  |    .288627   .5298318     0.54   0.589    -.7869887    1.364243
          3  |  -2.478512   1.059793    -2.34   0.025    -4.630005   -.3270184
          4  |  -2.788535   1.532917    -1.82   0.077    -5.900523    .3234524
          5  |   -1.45482   1.311544    -1.11   0.275    -4.117397    1.207756
          6  |  -.0832264   1.445572    -0.06   0.954    -3.017894    2.851441
          7  |   1.038807   1.921615     0.54   0.592    -2.862279    4.939892
          8  |    .063216   1.924747     0.03   0.974    -3.844228     3.97066
          9  |  -1.071513   2.777292    -0.39   0.702    -6.709716     4.56669
         10  |  -.0587495   2.311382    -0.03   0.980    -4.751104    4.633605
             |
leftist#year |
       1  0  |   .9670619   3.084869     0.31   0.756    -5.295554    7.229678
       1  1  |   2.264773   3.463402     0.65   0.517    -4.766307    9.295852
       1  3  |  -6.188663   3.731126    -1.66   0.106    -13.76325    1.385925
       1  4  |  -1.085515   2.837262    -0.38   0.704    -6.845464    4.674434
       1  5  |  -1.026008   2.854225    -0.36   0.721    -6.820393    4.768378
       1  6  |  -2.869784   3.414612    -0.84   0.406    -9.801814    4.062246
       1  7  |  -3.187466   2.767609    -1.15   0.257    -8.806012     2.43108
       1  8  |  -2.114983   3.147761    -0.67   0.506    -8.505278    4.275312
       1  9  |  -2.474278    4.26147    -0.58   0.565    -11.12552    6.176966
       1 10  |  -4.878997   4.137588    -1.18   0.246    -13.27875    3.520754
             |
       _cons |   23.36121   .9489537    24.62   0.000     21.43474    25.28769
-------------+----------------------------------------------------------------
     sigma_u |  7.4726782
     sigma_e |  5.5843563
         rho |  .64165823   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        350
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   24.02508    1.24131    19.35   0.000     21.59216    26.45801
       0  1  |   23.64984   1.008169    23.46   0.000     21.67387    25.62582
       0  2  |   23.36121   .9489537    24.62   0.000      21.5013    25.22113
       0  3  |    20.8827   1.061494    19.67   0.000     18.80221    22.96319
       0  4  |   20.57268   1.203136    17.10   0.000     18.21458    22.93078
       0  5  |   21.90639    .948496    23.10   0.000     20.04738    23.76541
       0  6  |   23.27799   1.013727    22.96   0.000     21.29112    25.26486
       0  7  |   24.40002   1.378743    17.70   0.000     21.69773    27.10231
       0  8  |   23.42443   1.395623    16.78   0.000     20.68906     26.1598
       0  9  |    22.2897   2.220873    10.04   0.000     17.93687    26.64253
       0 10  |   23.30246   1.760693    13.23   0.000     19.85157    26.75336
       1  0  |   24.99215   2.906049     8.60   0.000     19.29639     30.6879
       1  1  |   25.91461   3.575549     7.25   0.000     18.90667    32.92256
       1  2  |   23.36121   .9489537    24.62   0.000      21.5013    25.22113
       1  3  |   14.69404   3.202332     4.59   0.000     8.417584    20.97049
       1  4  |   19.48716   2.296835     8.48   0.000     14.98545    23.98888
       1  5  |   20.88039   2.254138     9.26   0.000     16.46236    25.29842
       1  6  |    20.4082   2.663058     7.66   0.000     15.18871     25.6277
       1  7  |   21.21255   1.656688    12.80   0.000     17.96551     24.4596
       1  8  |   21.30945   2.110704    10.10   0.000     17.17254    25.44635
       1  9  |   19.81542   2.830364     7.00   0.000     14.26801    25.36283
       1 10  |   18.42347   3.012471     6.12   0.000     12.51913     24.3278
------------------------------------------------------------------------------

. 
. * Matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "investtogdp"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if leftist==1 & success==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        231

Group variable: diffid                          Number of groups  =         21
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          4
                                                DF:     min       =       2.86
                                                        avg       =       2.86
DF adjustment:   Small sample                           max       =       2.86
                                                F(   4,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 5 clusters in revid)
------------------------------------------------------------------------------
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -1.712683    .942201    -1.82   0.171    -4.797813    1.372448
          1  |   .8388817   1.273746     0.66   0.559    -3.331854    5.009617
          3  |     .24838   1.597849     0.16   0.887    -4.983595    5.480355
          4  |    1.37725   1.700177     0.81   0.480    -4.189789    6.944288
          5  |   2.558727   2.173184     1.18   0.328    -4.557119    9.674574
          6  |   2.012301    2.00337     1.00   0.392    -4.547508     8.57211
          7  |    1.76809   4.408514     0.40   0.716    -12.66709    16.20327
          8  |   1.162386   4.833602     0.24   0.826     -14.6647    16.98947
          9  |   .9006194   4.442066     0.20   0.853    -13.64442    15.44566
         10  |   1.712627   4.437256     0.39   0.726    -12.81666    16.24192
             |
  revny#year |
       1  0  |    3.02599   4.004027     0.76   0.507    -10.08474    16.13672
       1  1  |   4.034872   6.360628     0.63   0.573    -16.79228    24.86203
       1  3  |  -12.92545   4.577317    -2.82   0.070    -27.91336    2.062455
       1  4  |  -6.596341    3.96877    -1.66   0.200    -19.59163    6.398945
       1  5  |   -7.81726   3.342175    -2.34   0.106    -18.76083    3.126311
       1  6  |  -9.003565   2.963129    -3.04   0.060      -18.706    .6988655
       1  7  |  -6.036894   4.157117    -1.45   0.247     -19.6489    7.575113
       1  8  |  -6.767239   4.847105    -1.40   0.261    -22.63853    9.104055
       1  9  |  -8.846448   5.596655    -1.58   0.217    -27.17206    9.479163
       1 10  |  -11.68963   4.513053    -2.59   0.085    -26.46711    3.087848
             |
       _cons |   23.55084   2.150962    10.95   0.002     16.50776    30.59392
-------------+----------------------------------------------------------------
     sigma_u |  10.073768
     sigma_e |    5.81308
         rho |  .75019423   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        231
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          4
DF adjustment:   Small sample                   DF:     min       =       2.86
                                                        avg       =       2.86
Within VCE type: Delta-method                           max       =       2.86

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   21.83816   1.992071    10.96   0.002     15.31534    28.36097
          2  |   24.38972   2.038642    11.96   0.002     17.71442    31.06502
          3  |   23.55084   2.150962    10.95   0.002     16.50776    30.59392
          4  |   23.79922   1.085376    21.93   0.000     20.24528    27.35316
          5  |   24.92809   1.072641    23.24   0.000     21.41585    28.44033
          6  |   26.10957   .9760456    26.75   0.000     22.91362    29.30552
          7  |   25.56314   .4636455    55.14   0.000     24.04499    27.08129
          8  |   25.31893    2.76105     9.17   0.003     16.27818    34.35967
          9  |   24.71323   3.208844     7.70   0.005     14.20623    35.22022
         10  |   24.45146    2.89063     8.46   0.004     14.98642     33.9165
         11  |   25.26347   2.602043     9.71   0.003     16.74337    33.78356
         12  |   24.86415   3.809775     6.53   0.008     12.38947    37.33882
         13  |   28.42459   5.592163     5.08   0.017     10.11369     46.7355
         14  |   23.55084   2.150962    10.95   0.002     16.50776    30.59392
         15  |   10.87377   3.684128     2.95   0.064    -1.189493    22.93703
         16  |   18.33175   3.841473     4.77   0.020      5.75328    30.91021
         17  |   18.29231   2.867248     6.38   0.009     8.903826    27.68079
         18  |   16.55957    2.54682     6.50   0.009     8.220302    24.89885
         19  |   19.28203   1.515662    12.72   0.001     14.31917     24.2449
         20  |   17.94599   1.963999     9.14   0.003     11.51509    24.37688
         21  |   15.60501    3.44644     4.53   0.022     4.320034    26.88999
         22  |   13.57383   3.361367     4.04   0.030     2.567417    24.58025
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 5 revolutions and 16 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if urbancivic==1 & success==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        759

Group variable: diffid                          Number of groups  =         69
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3842
                                                Largest FMI       =     0.3746
                                                Complete DF       =         21
DF adjustment:   Small sample                   DF:     min       =      11.11
                                                        avg       =      16.27
                                                        max       =      19.25
Model F test:       Equal FMI                   F(  20,   17.4)   =       0.95
Within VCE type:       Robust                   Prob > F          =     0.5449

                                (Within VCE adjusted for 22 clusters in revid)
------------------------------------------------------------------------------
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0357973   .3880183    -0.09   0.927    -.8472158    .7756212
          1  |    .067164   .5116349     0.13   0.897     -1.00276    1.137088
          3  |  -.8779437   .6513613    -1.35   0.193    -2.240061    .4841739
          4  |  -.7458742   .8080272    -0.92   0.368    -2.444243    .9524943
          5  |  -.4572318   .8296857    -0.55   0.589    -2.209252    1.294789
          6  |  -.0651727   .9030002    -0.07   0.943     -1.97957    1.849225
          7  |   .3692759   1.123843     0.33   0.748    -2.058194    2.796746
          8  |   .1910972   1.269796     0.15   0.883    -2.600402    2.982596
          9  |  -.5895764   1.538744    -0.38   0.708    -3.939685    2.760532
         10  |  -.8440094   1.800154    -0.47   0.647    -4.717318      3.0293
             |
  revny#year |
       1  0  |   .8149115   1.232764     0.66   0.516    -1.763027     3.39285
       1  1  |  -.0793352   .6989415    -0.11   0.911    -1.540952    1.382281
       1  3  |  -1.075608   .8271113    -1.30   0.209    -2.805252    .6540352
       1  4  |  -1.652261   1.056057    -1.56   0.135    -3.872994    .5684725
       1  5  |  -1.328209   1.131087    -1.17   0.258     -3.73189    1.075471
       1  6  |  -.4783502   1.482241    -0.32   0.751    -3.627654    2.670954
       1  7  |  -.6137956   1.889434    -0.32   0.749    -4.603986    3.376395
       1  8  |  -.6328608    2.13843    -0.30   0.772     -5.22489    3.959169
       1  9  |  -.9637282   2.545531    -0.38   0.711    -6.416165    4.488709
       1 10  |   .1772486   2.385313     0.07   0.942    -4.986645    5.341142
             |
       _cons |   23.43388   .7420267    31.58   0.000     21.88217     24.9856
-------------+----------------------------------------------------------------
     sigma_u |  6.8354261
     sigma_e |   4.461536
         rho |  .70124875   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        759
                                                Average RVI       =     4.1217
                                                Largest FMI       =     0.5123
                                                Complete DF       =         21
DF adjustment:   Small sample                   DF:     min       =       8.40
                                                        avg       =      16.22
Within VCE type: Delta-method                           max       =      19.25

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   23.39809   .9375307    24.96   0.000     21.43754    25.35864
          2  |   23.50105   1.022239    22.99   0.000     21.36336    25.63874
          3  |   23.43388   .7420267    31.58   0.000     21.88217     24.9856
          4  |   22.55594    .741408    30.42   0.000     21.00552    24.10636
          5  |   22.68801   .6512814    34.84   0.000      21.3143    24.06172
          6  |   22.97665   .6617471    34.72   0.000     21.56794    24.38537
          7  |   23.36871   .7312858    31.96   0.000     21.80105    24.93637
          8  |   23.80316   .8961568    26.56   0.000     21.79501    25.81131
          9  |   23.62498   1.081466    21.85   0.000     21.15147    26.09849
         10  |   22.84431   1.314051    17.38   0.000     19.89927    25.78934
         11  |   22.58987   1.546154    14.61   0.000     19.20374    25.97601
         12  |     24.213   1.105475    21.90   0.000     21.90124    26.52475
         13  |   23.42171   .6760546    34.64   0.000     22.00796    24.83547
         14  |   23.43388   .7420267    31.58   0.000     21.88217     24.9856
         15  |   21.48033   .6796707    31.60   0.000     20.05901    22.90165
         16  |   21.03575   .8586604    24.50   0.000     19.23036    22.84114
         17  |   21.64844   .8048997    26.90   0.000     19.94994    23.34694
         18  |   22.89036   1.088697    21.03   0.000     20.58648    25.19424
         19  |   23.18936   1.449265    16.00   0.000     20.13714    26.24159
         20  |   22.99212   1.451739    15.84   0.000     19.91284     26.0714
         21  |   21.88058   1.867298    11.72   0.000     17.95121    25.80995
         22  |   22.76712   1.744706    13.05   0.000     19.05561    26.47863
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 22 revolutions and 47 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 8.2 percent of observations

. * Complete case sample as robustness test
. clear

. use matcheddiffindifflong.dta, clear

. xtreg  $yvar i.revny##ib(2).year if leftist==1 & success==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       285
Group variable: diffid                          Number of groups   =        28

R-sq:  within  = 0.2953                         Obs per group: min =         2
       between = 0.0458                                        avg =      10.2
       overall = 0.0007                                        max =        11

                                                F(6,6)             =         .
corr(u_i, Xb)  = -0.3176                        Prob > F           =         .

                                  (Std. Err. adjusted for 7 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.9930182   1.118042    -0.89   0.409     -3.72877    1.742733
          1  |   .5265916   1.159445     0.45   0.666    -2.310469    3.363652
          3  |   .3700493   1.383294     0.27   0.798    -3.014748    3.754847
          4  |    1.80893   1.633099     1.11   0.310    -2.187121     5.80498
          5  |    2.44361   1.984351     1.23   0.264    -2.411922    7.299142
          6  |   1.705225   1.862204     0.92   0.395    -2.851422    6.261873
          7  |   1.293283   3.802728     0.34   0.745    -8.011657    10.59822
          8  |   .6647021   4.125687     0.16   0.877     -9.43049    10.75989
          9  |   .0391448   3.821569     0.01   0.992    -9.311897    9.390187
         10  |   1.633354   3.806568     0.43   0.683    -7.680981    10.94769
             |
  revny#year |
       1  0  |   2.306326     3.8776     0.59   0.574     -7.18182    11.79447
       1  1  |   4.347162   5.940611     0.73   0.492    -10.18899    18.88331
       1  3  |  -13.04712   4.449117    -2.93   0.026    -23.93372   -2.160524
       1  4  |  -7.028021   3.939365    -1.78   0.125     -16.6673    2.611257
       1  5  |  -7.702143   3.222161    -2.39   0.054    -15.58649    .1822003
       1  6  |  -9.008313   2.922746    -3.08   0.022    -16.16001   -1.856611
       1  7  |  -6.067196   3.701745    -1.64   0.152    -15.12504    2.990649
       1  8  |  -6.178795   4.236063    -1.46   0.195    -16.54407    4.186477
       1  9  |  -7.853211   4.898328    -1.60   0.160    -19.83899    4.132565
       1 10  |  -11.01595   4.128719    -2.67   0.037    -21.11856   -.9133387
             |
       _cons |   23.52532   2.037233    11.55   0.000     18.54038    28.51025
-------------+----------------------------------------------------------------
     sigma_u |  9.3852619
     sigma_e |  5.5213561
         rho |  .74288812   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        285
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |    22.5323   2.059011    10.94   0.000     18.49671    26.56789
       0  1  |   24.05191   1.914471    12.56   0.000     20.29961     27.8042
       0  2  |   23.52532   2.037233    11.55   0.000     19.53241    27.51822
       0  3  |   23.89536   1.072878    22.27   0.000     21.79256    25.99817
       0  4  |   25.33424   1.089492    23.25   0.000     23.19888    27.46961
       0  5  |   25.96893   .9102019    28.53   0.000     24.18496    27.75289
       0  6  |   25.23054   .5730551    44.03   0.000     24.10737    26.35371
       0  7  |    24.8186   2.300235    10.79   0.000     20.31022    29.32698
       0  8  |   24.19002   2.635176     9.18   0.000     19.02517    29.35487
       0  9  |   23.56446   2.392076     9.85   0.000     18.87608    28.25284
       0 10  |   25.15867   2.141351    11.75   0.000      20.9617    29.35564
       1  0  |   24.83862   3.654555     6.80   0.000     17.67583    32.00142
       1  1  |   28.39907   5.365341     5.29   0.000     17.88319    38.91494
       1  2  |   23.52532   2.037233    11.55   0.000     19.53241    27.51822
       1  3  |   10.84824    3.55294     3.05   0.002     3.884611    17.81188
       1  4  |   18.30622   3.670177     4.99   0.000     11.11281    25.49964
       1  5  |   18.26678   2.722011     6.71   0.000     12.93174    23.60183
       1  6  |   16.22223   2.417692     6.71   0.000     11.48364    20.96082
       1  7  |    18.7514   1.604416    11.69   0.000     15.60681      21.896
       1  8  |   18.01122    1.92053     9.38   0.000     14.24705    21.77539
       1  9  |   15.71125   3.125663     5.03   0.000     9.585062    21.83744
       1 10  |   14.14272   3.114762     4.54   0.000     8.037897    20.24754
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 7 revolutions and 21 matched cases

. xtreg  $yvar i.revny##ib(2).year if urbancivic==1 & success==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       779
Group variable: diffid                          Number of groups   =        80

R-sq:  within  = 0.0348                         Obs per group: min =         2
       between = 0.0053                                        avg =       9.7
       overall = 0.0018                                        max =        11

                                                F(20,25)           =      6.52
corr(u_i, Xb)  = -0.0712                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
 investtogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0775517   .3950794    -0.20   0.846     -.891233    .7361295
          1  |    .044053   .4975835     0.09   0.930    -.9807393    1.068845
          3  |  -.4799673   .6333257    -0.76   0.456    -1.784326    .8243914
          4  |    -.46334   .7338825    -0.63   0.534    -1.974799    1.048119
          5  |  -.2090701   .6409368    -0.33   0.747    -1.529104    1.110964
          6  |   .0125369   .8185156     0.02   0.988    -1.673227    1.698301
          7  |   .4883197   1.060215     0.46   0.649    -1.695235    2.671874
          8  |   .4641689   .9933269     0.47   0.644    -1.581626    2.509964
          9  |   .5664389   1.292359     0.44   0.665    -2.095225    3.228103
         10  |   .6963702   1.568461     0.44   0.661    -2.533936    3.926677
             |
  revny#year |
       1  0  |   .8566659   1.226422     0.70   0.491    -1.669198     3.38253
       1  1  |  -.0562242     .67898    -0.08   0.935     -1.45461    1.342161
       1  3  |  -1.473585   .8370594    -1.76   0.091    -3.197541    .2503713
       1  4  |  -1.865951   1.119829    -1.67   0.108    -4.172283    .4403804
       1  5  |  -1.424575   1.146239    -1.24   0.225    -3.785299     .936149
       1  6  |  -.1197306   1.499611    -0.08   0.937    -3.208237    2.968776
       1  7  |   .2767563   2.053389     0.13   0.894    -3.952277     4.50579
       1  8  |  -.3285149   2.007537    -0.16   0.871    -4.463116    3.806086
       1  9  |  -1.801718   2.541528    -0.71   0.485    -7.036092    3.432657
       1 10  |  -.9915326   2.254518    -0.44   0.664    -5.634799    3.651734
             |
       _cons |   22.96837    .721844    31.82   0.000     21.48171    24.45504
-------------+----------------------------------------------------------------
     sigma_u |  7.1721507
     sigma_e |  4.2870076
         rho |  .73676721   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        779
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   22.89082   .8697345    26.32   0.000     21.18617    24.59547
       0  1  |   23.01242   .8885336    25.90   0.000     21.27093    24.75392
       0  2  |   22.96837    .721844    31.82   0.000     21.55358    24.38316
       0  3  |    22.4884    .718006    31.32   0.000     21.08114    23.89567
       0  4  |   22.50503   .5500222    40.92   0.000     21.42701    23.58306
       0  5  |    22.7593   .5291153    43.01   0.000     21.72225    23.79635
       0  6  |   22.98091   .6535848    35.16   0.000     21.69991    24.26191
       0  7  |   23.45669   .7878407    29.77   0.000     21.91255    25.00083
       0  8  |   23.43254   .7638076    30.68   0.000     21.93551    24.92958
       0  9  |   23.53481   1.007072    23.37   0.000     21.56099    25.50863
       0 10  |   23.66474   1.259559    18.79   0.000     21.19605    26.13343
       1  0  |   23.74749    1.09485    21.69   0.000     21.60162    25.89335
       1  1  |    22.9562   .6573903    34.92   0.000     21.66774    24.24466
       1  2  |   22.96837    .721844    31.82   0.000     21.55358    24.38316
       1  3  |   21.01482    .680409    30.89   0.000     19.68124     22.3484
       1  4  |   20.63908   .9386947    21.99   0.000     18.79927    22.47889
       1  5  |   21.33473   .8812295    24.21   0.000     19.60755     23.0619
       1  6  |   22.86118   1.134765    20.15   0.000     20.63708    25.08528
       1  7  |   23.73345   1.617953    14.67   0.000     20.56232    26.90458
       1  8  |   23.10403   1.525212    15.15   0.000     20.11467    26.09339
       1  9  |   21.73309   2.181187     9.96   0.000     17.45805    26.00814
       1 10  |   22.67321   1.937242    11.70   0.000     18.87629    26.47013
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 54 matched cases

. 
. *=================================================================
. * EFFECT OF SOCIAL AND URBAN CIVIC REVOLUTIONS ON PROPERTY RIGHTS 
. *=================================================================
. * Matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdproprts"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if leftist==1 & success==1 [pwei
> ght=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   vdproprts |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0089631   .0092135    -0.97   0.365    -.0310602    .0131339
          1  |   6.30e-16          .        .       .            .           .
          3  |   .0166836   .0139683     1.19   0.274    -.0168169    .0501842
          4  |   .0172703   .0143655     1.20   0.271    -.0171829    .0517236
          5  |   .0193066   .0145553     1.33   0.229    -.0156016    .0542148
          6  |   .0195287   .0144803     1.35   0.222    -.0151998    .0542572
          7  |   .0205268   .0143562     1.43   0.199    -.0139041    .0549576
          8  |   .0253644   .0145937     1.74   0.129    -.0096361    .0603649
          9  |   .0281758   .0144572     1.95   0.095    -.0064972    .0628489
         10  |   .0281758   .0144572     1.95   0.095    -.0064972    .0628489
             |
  revny#year |
       1  0  |   .0160925   .0110325     1.46   0.191    -.0103671    .0425521
       1  1  |  -7.35e-16          .        .       .            .           .
       1  3  |  -.0044651    .066703    -0.07   0.949    -.1644403    .1555102
       1  4  |  -.0332093   .0696921    -0.48   0.649    -.2003536     .133935
       1  5  |  -.0279746   .0685326    -0.41   0.696    -.1923378    .1363887
       1  6  |  -.0524828   .0795907    -0.66   0.532    -.2433671    .1384015
       1  7  |  -.0543995   .0800669    -0.68   0.520    -.2464259    .1376269
       1  8  |  -.0628193   .0820323    -0.77   0.471    -.2595593    .1339207
       1  9  |  -.0780114   .0909672    -0.86   0.421    -.2961801    .1401572
       1 10  |  -.0780114   .0909672    -0.86   0.421    -.2961801    .1401572
             |
       _cons |   .3909471   .0351648    11.12   0.000     .3066104    .4752837
-------------+----------------------------------------------------------------
     sigma_u |  .21719799
     sigma_e |  .08858218
         rho |  .85738732   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3819839   .0361487    10.57   0.000     .2952878    .4686801
          2  |   .3909471   .0351648    11.12   0.000     .3066104    .4752837
          3  |   .3909471   .0351648    11.12   0.000     .3066104    .4752837
          4  |   .4076307   .0236873    17.21   0.000      .350821    .4644404
          5  |   .4082174   .0243402    16.77   0.000     .3498417    .4665931
          6  |   .4102537   .0247839    16.55   0.000     .3508138    .4696935
          7  |   .4104758   .0247416    16.59   0.000     .3511373    .4698142
          8  |   .4114738   .0249954    16.46   0.000     .3515267     .471421
          9  |   .4163115   .0274784    15.15   0.000     .3504093    .4822136
         10  |   .4191229   .0284616    14.73   0.000     .3508627    .4873831
         11  |   .4191229   .0284616    14.73   0.000     .3508627    .4873831
         12  |   .3980764   .0377961    10.53   0.000     .3074292    .4887237
         13  |   .3909471   .0351648    11.12   0.000     .3066104    .4752837
         14  |   .3909471   .0351648    11.12   0.000     .3066104    .4752837
         15  |   .4031656   .0447601     9.01   0.000     .2958165    .5105148
         16  |   .3750082   .0472062     7.94   0.000     .2617925    .4882238
         17  |   .3822791   .0453471     8.43   0.000     .2735222     .491036
         18  |   .3579929   .0552011     6.49   0.000     .2256027    .4903831
         19  |   .3570744   .0554466     6.44   0.000     .2240954    .4900533
         20  |   .3534922   .0549026     6.44   0.000      .221818    .4851663
         21  |   .3411115   .0630313     5.41   0.001      .189942    .4922809
         22  |   .3411115   .0630313     5.41   0.001      .189942    .4922809
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.revny##ib(2).year if urbancivic==1 & success==1 [p
> weight=freqwt], fe cluster(revid)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3079
                                                Largest FMI       =     0.0707
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.61
                                                        avg       =      23.07
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.7)   =       2.25
Within VCE type:       Robust                   Prob > F          =     0.0342

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
   vdproprts |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0141521   .0068172    -2.08   0.049    -.0282474   -.0000568
          1  |   -.013645    .006788    -2.01   0.056    -.0276798    .0003898
          3  |   .0184138   .0114401     1.61   0.121    -.0052397    .0420674
          4  |    .037429   .0171133     2.19   0.039     .0020455    .0728125
          5  |   .0433174   .0204885     2.11   0.045     .0009554    .0856795
          6  |   .0753412   .0344958     2.18   0.039     .0040155    .1466669
          7  |   .0778927   .0345338     2.26   0.034     .0064823     .149303
          8  |   .0754613   .0343091     2.20   0.038     .0045173    .1464053
          9  |   .0762642   .0339712     2.24   0.035     .0060031    .1465252
         10  |   .0770344   .0342459     2.25   0.034     .0061967    .1478721
             |
  revny#year |
       1  0  |   .0192657    .008924     2.16   0.041     .0008144     .037717
       1  1  |   .0191729    .008655     2.22   0.037     .0012779    .0370679
       1  3  |   .0193436   .0115822     1.67   0.108    -.0046038     .043291
       1  4  |   .0579287   .0177035     3.27   0.003      .021325    .0945325
       1  5  |   .0483974   .0278413     1.74   0.095    -.0091716    .1059665
       1  6  |    .030902   .0333686     0.93   0.364    -.0381149    .0999189
       1  7  |   .0251835   .0356328     0.71   0.487     -.048531     .098898
       1  8  |   .0280414   .0346904     0.81   0.427    -.0437167    .0997995
       1  9  |   .0357954   .0328671     1.09   0.288    -.0322431    .1038339
       1 10  |   .0411309   .0332561     1.24   0.229    -.0279102    .1101719
             |
       _cons |   .5831492   .0193994    30.06   0.000      .543039    .6232594
-------------+----------------------------------------------------------------
     sigma_u |  .19281518
     sigma_e |  .09642746
         rho |  .79993405   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     3.7177
                                                Largest FMI       =     0.1027
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.73
                                                        avg       =      22.94
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5689971   .0237166    23.99   0.000     .5199606    .6180336
          2  |   .5695042   .0237494    23.98   0.000     .5203998    .6186086
          3  |   .5831492   .0193994    30.06   0.000      .543039    .6232594
          4  |    .601563   .0116678    51.56   0.000     .5774387    .6256873
          5  |   .6205782   .0083882    73.98   0.000     .6032347    .6379217
          6  |   .6264666   .0101332    61.82   0.000     .6055153     .647418
          7  |   .6584904    .020877    31.54   0.000     .6153216    .7016592
          8  |   .6610419   .0210418    31.42   0.000     .6175223    .7045615
          9  |   .6586105   .0204863    32.15   0.000     .6162419    .7009791
         10  |   .6594134   .0199882    32.99   0.000     .6180468      .70078
         11  |   .6601836   .0204716    32.25   0.000     .6178024    .7025648
         12  |   .5882628   .0207833    28.30   0.000     .5452912    .6312344
         13  |   .5886771   .0207674    28.35   0.000     .5457384    .6316157
         14  |   .5831492   .0193994    30.06   0.000      .543039    .6232594
         15  |   .6209066   .0181552    34.20   0.000      .583369    .6584443
         16  |   .6785069   .0119839    56.62   0.000     .6537289    .7032849
         17  |    .674864   .0212575    31.75   0.000     .6309062    .7188219
         18  |   .6893924   .0213343    32.31   0.000     .6452546    .7335302
         19  |   .6862253   .0235771    29.11   0.000     .6374174    .7350333
         20  |   .6866519   .0234283    29.31   0.000     .6381599    .7351439
         21  |   .6952088   .0225806    30.79   0.000     .6483945     .742023
         22  |   .7013145   .0237497    29.53   0.000     .6518849     .750744
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. clear

. use matcheddiffindifflong.dta, clear

. xtreg  $yvar i.revny##ib(2).year if leftist==1 & success==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0435                         Obs per group: min =        11
       between = 0.1008                                        avg =      11.0
       overall = 0.0653                                        max =        11

                                                F(10,8)            =         .
corr(u_i, Xb)  = 0.1789                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   vdproprts |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0089631   .0092135    -0.97   0.359    -.0302096    .0122833
          1  |   6.30e-16   4.54e-09     0.00   1.000    -1.05e-08    1.05e-08
          3  |   .0166836   .0139683     1.19   0.267    -.0155274    .0488947
          4  |   .0172703   .0143655     1.20   0.264    -.0158567    .0503974
          5  |   .0193066   .0145553     1.33   0.221    -.0142579    .0528711
          6  |   .0195287   .0144803     1.35   0.214     -.013863    .0529204
          7  |   .0205268   .0143562     1.43   0.191    -.0125788    .0536323
          8  |   .0253644   .0145937     1.74   0.120    -.0082888    .0590176
          9  |   .0281758   .0144572     1.95   0.087    -.0051625    .0615142
         10  |   .0281758   .0144572     1.95   0.087    -.0051625    .0615142
             |
  revny#year |
       1  0  |   .0160925   .0110325     1.46   0.183    -.0093485    .0415336
       1  1  |  -7.35e-16   5.21e-09    -0.00   1.000    -1.20e-08    1.20e-08
       1  3  |  -.0044651    .066703    -0.07   0.948    -.1582824    .1493522
       1  4  |  -.0332093   .0696921    -0.48   0.646    -.1939196    .1275011
       1  5  |  -.0279746   .0685326    -0.41   0.694    -.1860109    .1300618
       1  6  |  -.0524828   .0795907    -0.66   0.528    -.2360193    .1310537
       1  7  |  -.0543995   .0800669    -0.68   0.516    -.2390342    .1302352
       1  8  |  -.0628193   .0820323    -0.77   0.466    -.2519861    .1263475
       1  9  |  -.0780114   .0909672    -0.86   0.416    -.2877821    .1317592
       1 10  |  -.0780114   .0909672    -0.86   0.416    -.2877821    .1317592
             |
       _cons |   .3909471   .0351648    11.12   0.000     .3098568    .4720373
-------------+----------------------------------------------------------------
     sigma_u |  .21719799
     sigma_e |  .08858218
         rho |  .85738732   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3819839   .0361487    10.57   0.000     .3111339     .452834
       0  1  |   .3909471   .0351648    11.12   0.000     .3220253    .4598689
       0  2  |   .3909471   .0351648    11.12   0.000     .3220253    .4598689
       0  3  |   .4076307   .0236873    17.21   0.000     .3612045    .4540569
       0  4  |   .4082174   .0243402    16.77   0.000     .3605115    .4559233
       0  5  |   .4102537   .0247839    16.55   0.000     .3616781    .4588293
       0  6  |   .4104758   .0247416    16.59   0.000     .3619831    .4589684
       0  7  |   .4114738   .0249954    16.46   0.000     .3624837     .460464
       0  8  |   .4163115   .0274784    15.15   0.000     .3624547    .4701682
       0  9  |   .4191229   .0284616    14.73   0.000     .3633391    .4749067
       0 10  |   .4191229   .0284616    14.73   0.000     .3633391    .4749067
       1  0  |   .3980764   .0377961    10.53   0.000     .3239975    .4721554
       1  1  |   .3909471   .0351648    11.12   0.000     .3220253    .4598689
       1  2  |   .3909471   .0351648    11.12   0.000     .3220253    .4598689
       1  3  |   .4031656   .0447601     9.01   0.000     .3154375    .4908938
       1  4  |   .3750082   .0472062     7.94   0.000     .2824858    .4675305
       1  5  |   .3822791   .0453471     8.43   0.000     .2934005    .4711577
       1  6  |   .3579929   .0552011     6.49   0.000     .2498007    .4661852
       1  7  |   .3570744   .0554466     6.44   0.000      .248401    .4657477
       1  8  |   .3534922   .0549026     6.44   0.000      .245885    .4610993
       1  9  |   .3411115   .0630313     5.41   0.000     .2175724    .4646505
       1 10  |   .3411115   .0630313     5.41   0.000     .2175724    .4646505
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg  $yvar i.revny##ib(2).year if urbancivic==1 & success==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.1685                         Obs per group: min =         5
       between = 0.0068                                        avg =      10.4
       overall = 0.0304                                        max =        11

                                                F(20,25)           =     13.14
corr(u_i, Xb)  = 0.0032                         Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   vdproprts |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.014163    .006826    -2.07   0.048    -.0282214   -.0001045
          1  |  -.0136555   .0067968    -2.01   0.055    -.0276537    .0003427
          3  |   .0184278   .0114555     1.61   0.120    -.0051653    .0420208
          4  |   .0374575   .0171352     2.19   0.038     .0021669    .0727481
          5  |   .0433505   .0205149     2.11   0.045     .0010993    .0856017
          6  |   .0759134   .0347567     2.18   0.039     .0043307    .1474961
          7  |   .0852268   .0354586     2.40   0.024     .0121985    .1582551
          8  |   .0824776   .0351869     2.34   0.027     .0100088    .1549465
          9  |   .0803055   .0365695     2.20   0.038     .0049892    .1556218
         10  |   .0809919   .0378932     2.14   0.043     .0029494    .1590345
             |
  revny#year |
       1  0  |   .0192766   .0089317     2.16   0.041     .0008815    .0376717
       1  1  |   .0191834   .0086634     2.21   0.036     .0013408    .0370259
       1  3  |   .0193297   .0115888     1.67   0.108    -.0045378    .0431972
       1  4  |   .0579002   .0177136     3.27   0.003     .0214184     .094382
       1  5  |   .0433251   .0297944     1.45   0.158    -.0180376    .1046878
       1  6  |   .0249554   .0366598     0.68   0.502    -.0505469    .1004578
       1  7  |   .0016308   .0424434     0.04   0.970     -.085783    .0890446
       1  8  |   .0051821   .0413839     0.13   0.901    -.0800495    .0904138
       1  9  |   .0191499    .039416     0.49   0.631    -.0620289    .1003286
       1 10  |   .0309805   .0384249     0.81   0.428    -.0481571    .1101181
             |
       _cons |   .5807103   .0176126    32.97   0.000     .5444365     .616984
-------------+----------------------------------------------------------------
     sigma_u |  .19427192
     sigma_e |  .09411701
         rho |  .80991224   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins revny#year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .5665473   .0223547    25.34   0.000     .5227329    .6103617
       0  1  |   .5670548   .0223851    25.33   0.000     .5231809    .6109286
       0  2  |   .5807103   .0176126    32.97   0.000     .5461903    .6152303
       0  3  |    .599138   .0094598    63.33   0.000     .5805971     .617679
       0  4  |   .6181678    .007807    79.18   0.000     .6028663    .6334693
       0  5  |   .6240608   .0104614    59.65   0.000     .6035567    .6445649
       0  6  |   .6566237   .0233116    28.17   0.000     .6109339    .7023135
       0  7  |   .6659371   .0232921    28.59   0.000     .6202855    .7115887
       0  8  |   .6631879   .0226894    29.23   0.000     .6187175    .7076584
       0  9  |   .6610158   .0234783    28.15   0.000     .6149992    .7070323
       0 10  |   .6617022    .025006    26.46   0.000     .6126913    .7107131
       1  0  |   .5858239   .0186453    31.42   0.000     .5492799    .6223679
       1  1  |   .5862381   .0186364    31.46   0.000     .5497115    .6227648
       1  2  |   .5807103   .0176126    32.97   0.000     .5461903    .6152303
       1  3  |   .6184677   .0156135    39.61   0.000     .5878658    .6490696
       1  4  |    .676068   .0134201    50.38   0.000      .649765    .7023709
       1  5  |   .6673859   .0238108    28.03   0.000     .6207176    .7140543
       1  6  |   .6815792   .0237568    28.69   0.000     .6350168    .7281416
       1  7  |   .6675679   .0252073    26.48   0.000     .6181624    .7169734
       1  8  |     .66837    .025062    26.67   0.000     .6192495    .7174906
       1  9  |   .6801656   .0235266    28.91   0.000     .6340544    .7262769
       1 10  |   .6926827     .02334    29.68   0.000     .6469371    .7384283
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. *==================================
. * EFFECT OF REVOLUTION ON INFLATION
. *==================================
. * Impact of revolutionary successs/failure on inflation
. * Multiple imputation
. clear

. use fullsamplediffindifflong.dta, clear

. * Must alter variable name due to reshaping of data during multiple imputation
. generate anninflatwi = anninflat2 
(276 missing values generated)

. global yvar = "anninflatwi"

. quietly: chp9fullmultimp

. * Successful vs. failed
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year, fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =      1,694

Group variable: revid                           Number of groups  =        154
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0885
                                                Largest FMI       =     0.0963
                                                Complete DF       =       1520
DF adjustment:   Small sample                   DF:     min       =     582.59
                                                        avg       =   1,217.77
                                                        max       =   1,515.38
Model F test:       Equal FMI                   F(  20, 1451.9)   =       1.19
Within VCE type: Conventional                   Prob > F          =     0.2510

------------------------------------------------------------------------------
 anninflatwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -6.150507   5.902112    -1.04   0.298    -17.72802    5.427002
          1  |  -.4404109   5.882798    -0.07   0.940    -11.97979    11.09897
          3  |   1.283763   5.881526     0.22   0.827    -10.25311    12.82064
          4  |    .796721   5.958992     0.13   0.894    -10.89383    12.48727
          5  |  -.1688456   5.878035    -0.03   0.977    -11.69884    11.36115
          6  |   3.143714   5.921507     0.53   0.596    -8.472218    14.75965
          7  |    1.38923   5.921842     0.23   0.815    -10.22737    13.00583
          8  |  -3.687571   5.901803    -0.62   0.532    -15.26447    7.889328
          9  |   3.152699   6.155196     0.51   0.609    -8.935602      15.241
         10  |  -1.315327   6.135003    -0.21   0.830    -13.36217    10.73152
             |
success#year |
       1  0  |   2.001872   8.608105     0.23   0.816    -14.88337    18.88711
       1  1  |  -1.491501   8.590173    -0.17   0.862    -18.34142    15.35842
       1  3  |   4.286613   8.683252     0.49   0.622    -12.74748    21.32071
       1  4  |   11.50357    8.74108     1.32   0.188    -5.645961    28.65311
       1  5  |   9.101246   8.883731     1.02   0.306     -8.33616    26.53865
       1  6  |   7.288203   8.724414     0.84   0.404    -9.827986    24.40439
       1  7  |   9.833277   8.985831     1.09   0.274    -7.812705    27.47926
       1  8  |    .084603   8.654774     0.01   0.992    -16.89292    17.06213
       1  9  |  -6.399095   8.799533    -0.73   0.467    -23.66607    10.86788
       1 10  |   4.159078   9.014177     0.46   0.645    -13.54516    21.86332
             |
       _cons |   17.68695   3.028641     5.84   0.000     11.74618    23.62773
-------------+----------------------------------------------------------------
     sigma_u |  29.987852
     sigma_e |  37.556095
         rho |  .38934018   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =      1,694
                                                Average RVI       =     0.0885
                                                Largest FMI       =     0.2202
                                                Complete DF       =       1520
DF adjustment:   Small sample                   DF:     min       =     171.34
                                                        avg       =   1,057.13
Within VCE type: Delta-method                           max       =   1,517.31

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   11.53645   5.062531     2.28   0.023     1.605731    21.46716
          2  |   17.24654   5.043758     3.42   0.001     7.352933    27.14015
          3  |   17.68695   3.028641     5.84   0.000     11.74618    23.62773
          4  |   18.97072   5.038851     3.76   0.000     9.086781    28.85465
          5  |   18.48368   5.121107     3.61   0.000      8.43628    28.53107
          6  |   17.51811   5.032786     3.48   0.001     7.646117     27.3901
          7  |   20.83067   5.083326     4.10   0.000     10.85868    30.80265
          8  |   19.07619   5.096928     3.74   0.000     9.077115    29.07526
          9  |   13.99938   5.060589     2.77   0.006     4.072512    23.92626
         10  |   20.83965   5.375682     3.88   0.000     10.27116    31.40815
         11  |   16.37163   5.339157     3.07   0.002     5.879159     26.8641
         12  |   13.53832   5.484982     2.47   0.014      2.77935    24.29729
         13  |   15.75504   5.480579     2.87   0.004      5.00473    26.50536
         14  |   17.68695   3.028641     5.84   0.000     11.74618    23.62773
         15  |   23.25733   5.646103     4.12   0.000     12.17675    34.33791
         16  |   29.98725   5.640182     5.32   0.000     18.91865    41.05586
         17  |   26.61935   5.953796     4.47   0.000     14.90221     38.3365
         18  |   28.11887   5.782141     4.86   0.000     16.76011    39.47763
         19  |   28.90946    6.17318     4.68   0.000     16.72418    41.09474
         20  |   14.08399   5.608615     2.51   0.012      3.07904    25.08893
         21  |   14.44056   5.698138     2.53   0.011     3.254238    25.62688
         22  |   20.53071   5.873182     3.50   0.001     8.982821    32.07859
------------------------------------------------------------------------------

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 7 percent of observations

. drop anninflatwi

. * Complete case sample as robustness check
. clear

. use fullsamplediffindifflong.dta, clear

. xtreg anninflat2 i.success##ib(2).year, fe
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =      1,649
Group variable: revid                           Number of groups  =        166

R-sq:                                           Obs per group:
     within  = 0.0206                                         min =          2
     between = 0.0028                                         avg =        9.9
     overall = 0.0140                                         max =         11

                                                F(20,1463)        =       1.54
corr(u_i, Xb)  = 0.0044                         Prob > F          =     0.0599

------------------------------------------------------------------------------
  anninflat2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -6.224617   6.152867    -1.01   0.312      -18.294    5.844767
          1  |  -.4746484   6.043856    -0.08   0.937     -12.3302     11.3809
          3  |   1.639003    5.99704     0.27   0.785    -10.12471    13.40272
          4  |   .4232036   6.017132     0.07   0.944    -11.37992    12.22633
          5  |   1.913331   5.968513     0.32   0.749    -9.794426    13.62109
          6  |   3.621326   6.015559     0.60   0.547    -8.178715    15.42137
          7  |   .0120186   6.016246     0.00   0.998    -11.78937    11.81341
          8  |  -5.103253   6.057477    -0.84   0.400    -16.98552    6.779014
          9  |   2.102292   6.112149     0.34   0.731    -9.887219     14.0918
         10  |   -.435836   6.112149    -0.07   0.943    -12.42535    11.55368
             |
success#year |
       1  0  |   2.020421   8.900362     0.23   0.820    -15.43841    19.47925
       1  1  |  -1.457263   8.807317    -0.17   0.869    -18.73358    15.81905
       1  3  |   4.843868   8.830415     0.55   0.583    -12.47776    22.16549
       1  4  |   14.11188   8.865899     1.59   0.112    -3.279354    31.50311
       1  5  |   7.634815    8.85292     0.86   0.389    -9.730956    25.00059
       1  6  |   5.761058   8.989122     0.64   0.522    -11.87189      23.394
       1  7  |   12.35158   8.952664     1.38   0.168    -5.209852      29.913
       1  8  |   1.501554   8.979913     0.17   0.867    -16.11332    19.11643
       1  9  |  -9.779034   9.037303    -1.08   0.279    -27.50649    7.948421
       1 10  |  -1.591533   9.037303    -0.18   0.860    -19.31899    16.13592
             |
       _cons |   18.83105   3.126271     6.02   0.000      12.6986     24.9635
-------------+----------------------------------------------------------------
     sigma_u |  31.403934
     sigma_e |  38.437777
         rho |  .40030002   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(165, 1463) = 6.45                   Prob > F = 0.0000

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =      1,649
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   12.60643   5.259354     2.40   0.017     2.298286    22.91458
       0  1  |    18.3564   5.132435     3.58   0.000     8.297012    28.41579
       0  2  |   18.83105   3.126271     6.02   0.000     12.70367    24.95843
       0  3  |   20.47005   5.069522     4.04   0.000     10.53397    30.40613
       0  4  |   19.25425   5.092519     3.78   0.000     9.273097    29.23541
       0  5  |   20.74438   5.031304     4.12   0.000     10.88321    30.60555
       0  6  |   22.45237   5.080239     4.42   0.000     12.49529    32.40946
       0  7  |   18.84307   5.080473     3.71   0.000     8.885521    28.80061
       0  8  |   13.72779   5.127295     2.68   0.007     3.678482    23.77711
       0  9  |   20.93334     5.1876     4.04   0.000     10.76583    31.10085
       0 10  |   18.39521     5.1876     3.55   0.000     8.227702    28.56272
       1  0  |   14.62685   5.702573     2.56   0.010     3.450014    25.80369
       1  1  |   16.89914   5.674313     2.98   0.003     5.777686    28.02059
       1  2  |   18.83105   3.126271     6.02   0.000     12.70367    24.95843
       1  3  |   25.31392   5.739339     4.41   0.000     14.06502    36.56282
       1  4  |   33.36613   5.769105     5.78   0.000     22.05889    44.67337
       1  5  |   28.37919   5.799239     4.89   0.000     17.01289    39.74549
       1  6  |   28.21343   5.941253     4.75   0.000     16.56879    39.85807
       1  7  |   31.19464   5.883559     5.30   0.000     19.66308    42.72621
       1  8  |   15.22935   5.883757     2.59   0.010     3.697398     26.7613
       1  9  |   11.15431   5.916569     1.89   0.059    -.4419574    22.75057
       1 10  |   16.80368   5.916569     2.84   0.005     5.207416    28.39994
------------------------------------------------------------------------------

. 
. * Impact of social and urban civic revolutions on inflation
. clear

. use simplediffindifflong.dta, clear

. * Must alter variable name due to reshaping of data
. generate anninflatwi = anninflat2 
(120 missing values generated)

. global yvar = "anninflatwi"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, re

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Random-effects GLS regression                   Number of obs     =        418

Group variable: revid                           Number of groups  =         38
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1036
                                                Largest FMI       =     0.3152
DF adjustment:   Large sample                   DF:     min       =      99.02
                                                        avg       =   1.92e+53
                                                        max       =   1.62e+54
Model F test:       Equal FMI                   F(  21,19878.2)   =       1.12
Within VCE type: Conventional                   Prob > F          =     0.3149

------------------------------------------------------------------------------
 anninflatwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |   44.60061   22.48146     1.98   0.047     .5377532    88.66346
             |
        year |
          0  |   1.389824    14.4759     0.10   0.924    -26.98243    29.76207
          1  |   .4288596    14.4759     0.03   0.976    -27.94339    28.80111
          3  |   7.153734    14.4759     0.49   0.621    -21.21852    35.52598
          4  |   29.26588   14.61228     2.00   0.045     .6250214    57.90675
          5  |   16.90807   14.52333     1.16   0.244    -11.55729    45.37343
          6  |   17.39513   14.86414     1.17   0.242    -11.74847    46.53873
          7  |   19.19274   14.78331     1.30   0.194    -9.788603    48.17409
          8  |     5.6607   14.58373     0.39   0.698    -22.92372    34.24512
          9  |   4.628659   16.00939     0.29   0.773    -26.89017    36.14749
         10  |    17.1648   17.32039     0.99   0.324    -17.20254    51.53213
             |
leftist#year |
       1  0  |  -34.73492   26.90551    -1.29   0.197    -87.46874     17.9989
       1  1  |  -22.83417   26.90551    -0.85   0.396    -75.56799    29.89965
       1  3  |   17.52565   27.74252     0.63   0.528    -36.87454    71.92584
       1  4  |  -20.05429   27.56751    -0.73   0.467    -74.10198     33.9934
       1  5  |   -14.2738   28.21804    -0.51   0.613    -69.64162    41.09402
       1  6  |  -18.61487   27.52384    -0.68   0.499    -72.57493    35.34518
       1  7  |  -43.11319   27.32178    -1.58   0.115    -96.66947     10.4431
       1  8  |  -38.18129   27.10731    -1.41   0.159    -91.31221    14.94964
       1  9  |  -33.28845   27.79114    -1.20   0.231    -87.78691       21.21
       1 10  |  -28.73505   27.88853    -1.03   0.303    -83.43085    25.96075
             |
       _cons |   8.080523   12.09565     0.67   0.504    -15.62651    31.78755
-------------+----------------------------------------------------------------
     sigma_u |  33.476873
     sigma_e |  53.184749
         rho |  .28377074   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        418
                                                Average RVI       =     0.1036
                                                Largest FMI       =     0.4011
DF adjustment:   Large sample                   DF:     min       =      61.67
                                                        avg       =   5.99e+57
Within VCE type: Delta-method                           max       =   6.60e+58

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   9.470347   12.09565     0.78   0.434    -14.23668    33.17738
          2  |   8.509382   12.09565     0.70   0.482    -15.19765    32.21641
          3  |   8.080523   12.09565     0.67   0.504    -15.62651    31.78755
          4  |   15.23426   12.09565     1.26   0.208    -8.472775    38.94129
          5  |   37.34641   12.25853     3.05   0.002     13.31789    61.37493
          6  |   24.98859   12.15236     2.06   0.040     1.170125    48.80706
          7  |   25.47565   12.55769     2.03   0.043     .8457524    50.10556
          8  |   27.27327    12.4619     2.19   0.029     2.837366    51.70917
          9  |   13.74122   12.22449     1.12   0.261    -10.21974    37.70219
         10  |   12.70918   13.89436     0.91   0.362     -14.7397    40.15806
         11  |   25.24532   15.38664     1.64   0.106    -5.515439    56.00608
         12  |   19.33603   18.95024     1.02   0.308    -17.80575    56.47781
         13  |   30.27582   18.95024     1.60   0.110    -6.865958     67.4176
         14  |   52.68113   18.95024     2.78   0.005     15.53935    89.82291
         15  |   77.36051   20.12096     3.84   0.000     37.85635    116.8647
         16  |   61.89273   20.21135     3.06   0.002     22.20119    101.5843
         17  |    55.3154   20.87626     2.65   0.008     14.22752    96.40328
         18  |   51.46139   19.55836     2.63   0.009     13.10837     89.8144
         19  |   28.76069   19.43678     1.48   0.139    -9.347233    66.86861
         20  |   20.16054   19.29092     1.05   0.296     -17.6552    57.97628
         21  |   24.02134   19.77958     1.21   0.225     -14.7811    62.82377
         22  |   41.11088   19.79543     2.08   0.038     2.276072    79.94568
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         27       71.05       71.05
          1 |         11       28.95      100.00
------------+-----------------------------------
      Total |         38      100.00

. * Failed social vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==0, re

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Random-effects GLS regression                   Number of obs     =        638

Group variable: revid                           Number of groups  =         58
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0540
                                                Largest FMI       =     0.2884
DF adjustment:   Large sample                   DF:     min       =     117.83
                                                        avg       =   6.11e+53
                                                        max       =   2.27e+54
Model F test:       Equal FMI                   F(  21,65587.4)   =       0.46
Within VCE type: Conventional                   Prob > F          =     0.9827

------------------------------------------------------------------------------
 anninflatwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |   22.95846   15.63825     1.47   0.142    -7.691954    53.60887
             |
        year |
          0  |    -2.0217   15.58654    -0.13   0.897    -32.57076    28.52736
          1  |  -3.538957   15.58654    -0.23   0.820    -34.08801     27.0101
          3  |   1.440822   15.58654     0.09   0.926    -29.10823    31.98988
          4  |   3.860491   15.58654     0.25   0.804    -26.68856    34.40955
          5  |   9.656262   15.58654     0.62   0.536    -20.89279    40.20532
          6  |   6.780545   15.77513     0.43   0.667    -24.14048    37.70157
          7  |  -1.669606   15.85777    -0.11   0.916    -32.75508    29.41586
          8  |  -.0607098   16.23657    -0.00   0.997    -31.91018    31.78876
          9  |  -.0161985    16.8001    -0.00   0.999    -33.02988    32.99749
         10  |  -2.126449   18.32281    -0.12   0.908    -38.41115    34.15826
             |
leftist#year |
       1  0  |   -17.1935   19.30495    -0.89   0.373    -55.03064    20.64365
       1  1  |   .2710601   19.25626     0.01   0.989    -37.47051    38.01263
       1  3  |  -7.938335   19.25626    -0.41   0.680    -45.67991    29.80324
       1  4  |  -9.548441   19.25626    -0.50   0.620    -47.29001    28.19313
       1  5  |  -14.46028   19.25626    -0.75   0.453    -52.20186    23.28129
       1  6  |  -9.144573   19.40922    -0.47   0.638    -47.18721    28.89806
       1  7  |  -10.29312   19.47645    -0.53   0.597    -48.46886    27.88262
       1  8  |  -17.27116   19.78609    -0.87   0.383    -56.06576    21.52343
       1  9  |  -5.931996   20.25109    -0.29   0.770    -45.67249     33.8085
       1 10  |  -12.64122   21.53111    -0.59   0.558    -55.06997    29.78754
             |
       _cons |    11.7628   12.65803     0.93   0.353    -13.04648    36.57208
-------------+----------------------------------------------------------------
     sigma_u |  27.837286
     sigma_e |  49.288182
         rho |  .24184039   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        638
                                                Average RVI       =     0.0540
                                                Largest FMI       =     0.3848
DF adjustment:   Large sample                   DF:     min       =      66.92
                                                        avg       =   2.04e+56
Within VCE type: Delta-method                           max       =   1.17e+57

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   9.741099   12.65803     0.77   0.442    -15.06818    34.55038
          2  |   8.223842   12.65803     0.65   0.516    -16.58544    33.03312
          3  |    11.7628   12.65803     0.93   0.353    -13.04648    36.57208
          4  |   13.20362   12.65803     1.04   0.297    -11.60566     38.0129
          5  |   15.62329   12.65803     1.23   0.217    -9.185988    40.43257
          6  |   21.41906   12.65803     1.69   0.091    -3.390217    46.22834
          7  |   18.54334   12.88953     1.44   0.150     -6.72398    43.81067
          8  |   10.09319   12.99055     0.78   0.437    -15.37657    35.56295
          9  |   11.70209   13.45034     0.87   0.385    -14.70653    38.11071
         10  |    11.7466   14.12547     0.83   0.406    -16.08402    39.57722
         11  |    9.63635   15.90632     0.61   0.547    -22.11348    41.38618
         12  |   15.50606   9.284778     1.67   0.095     -2.69293    33.70505
         13  |   31.45336   9.183098     3.43   0.001     13.45482     49.4519
         14  |   34.72126   9.183098     3.78   0.000     16.72272     52.7198
         15  |   28.22375   9.183098     3.07   0.002      10.2252    46.22229
         16  |   29.03331   9.183098     3.16   0.002     11.03477    47.03185
         17  |   29.91724   9.183098     3.26   0.001     11.91869    47.91578
         18  |   32.35723   9.183098     3.52   0.000     14.35869    50.35577
         19  |   22.75853   9.183098     2.48   0.013     4.759986    40.75707
         20  |   17.38938   9.183098     1.89   0.058    -.6091579    35.38793
         21  |   28.77306   9.183098     3.13   0.002     10.77452    46.77161
         22  |   19.95359   9.183098     2.17   0.030     1.955051    37.95214
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==0

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==0

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         20       34.48       34.48
          1 |         38       65.52      100.00
------------+-----------------------------------
      Total |         58      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 5.4 percent of observations

. drop anninflatwi

. * Complete case sample as robustness test
. clear

. use simplediffindifflong.dta, clear

. xtreg anninflat2 i.leftist##ib(2).year if success==1, re

Random-effects GLS regression                   Number of obs     =        396
Group variable: revid                           Number of groups  =         41

R-sq:                                           Obs per group:
     within  = 0.0630                                         min =          3
     between = 0.0952                                         avg =        9.7
     overall = 0.0700                                         max =         11

                                                Wald chi2(21)     =      26.62
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.1839

------------------------------------------------------------------------------
  anninflat2 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |   50.12103   23.40316     2.14   0.032     4.251684    95.99038
             |
        year |
          0  |   1.389824    15.5289     0.09   0.929    -29.04626    31.82591
          1  |   .4288596    15.5289     0.03   0.978    -30.00723    30.86495
          3  |   9.241529    15.4024     0.60   0.549    -20.94662    39.42968
          4  |    34.7511   15.56313     2.23   0.026     4.247927    65.25428
          5  |   18.65354   15.56313     1.20   0.231    -11.84964    49.15671
          6  |   17.69823   16.13903     1.10   0.273    -13.93368    49.33015
          7  |   17.02011   16.13903     1.05   0.292     -14.6118    48.65202
          8  |   2.514359   16.13903     0.16   0.876    -29.11755    34.14627
          9  |   3.018898   16.55547     0.18   0.855    -29.42923    35.46703
         10  |   12.48132   16.55547     0.75   0.451    -19.96681    44.92946
             |
leftist#year |
       1  0  |  -34.73492   28.86265    -1.20   0.229    -91.30467    21.83483
       1  1  |  -22.83417   28.86265    -0.79   0.429    -79.40392    33.73558
       1  3  |   20.21915   29.38766     0.69   0.491     -37.3796     77.8179
       1  4  |  -28.00588   29.47221    -0.95   0.342    -85.77036     29.7586
       1  5  |  -15.91164   29.47221    -0.54   0.589    -73.67612    41.85283
       1  6  |  -20.40623   29.78034    -0.69   0.493    -78.77462    37.96216
       1  7  |   -22.0167   29.34438    -0.75   0.453    -79.53062    35.49722
       1  8  |  -14.38187   29.34438    -0.49   0.624    -71.89579    43.13205
       1  9  |  -40.92187   29.57546    -1.38   0.166    -98.88871    17.04497
       1 10  |    -34.951   29.57546    -1.18   0.237    -92.91784    23.01584
             |
       _cons |   9.004827   12.59254     0.72   0.475    -15.67609    33.68575
-------------+----------------------------------------------------------------
     sigma_u |  32.477648
     sigma_e |  56.498594
         rho |   .2483695   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year

Adjusted predictions                            Number of obs     =        396
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   10.39465   12.59254     0.83   0.409    -14.28627    35.07557
       0  1  |   9.433686   12.59254     0.75   0.454    -15.24723    34.11461
       0  2  |   9.004827   12.59254     0.72   0.475    -15.67609    33.68575
       0  3  |   18.24636   12.40426     1.47   0.141    -6.065541    42.55825
       0  4  |   43.75593   12.59994     3.47   0.001     19.06049    68.45136
       0  5  |   27.65836   12.59994     2.20   0.028     2.962925     52.3538
       0  6  |   26.70306    13.2472     2.02   0.044     .7390213     52.6671
       0  7  |   26.02494    13.2472     1.96   0.049     .0608977    51.98897
       0  8  |   11.51919    13.2472     0.87   0.385    -14.44485    37.48322
       0  9  |   12.02373   13.74317     0.87   0.382    -14.91239    38.95984
       0 10  |   21.48615   13.74317     1.56   0.118    -5.449965    48.42226
       1  0  |   25.78076   19.72653     1.31   0.191    -12.88252    64.44404
       1  1  |   36.72055   19.72653     1.86   0.063    -1.942731    75.38383
       1  2  |   59.12586   19.72653     3.00   0.003     20.46258    97.78914
       1  3  |   88.58654   20.57103     4.31   0.000     48.26806     128.905
       1  4  |   65.87108   20.57103     3.20   0.001      25.5526    106.1896
       1  5  |   61.86775   20.57103     3.01   0.003     21.54927    102.1862
       1  6  |   56.41786   20.57103     2.74   0.006     16.09938    96.73635
       1  7  |   54.12927    19.7412     2.74   0.006     15.43723     92.8213
       1  8  |   47.25835    19.7412     2.39   0.017     8.566315    85.95038
       1  9  |   21.22289    19.7412     1.08   0.282    -17.46914    59.91493
       1 10  |   36.65618    19.7412     1.86   0.063    -2.035854    75.34821
------------------------------------------------------------------------------

. xtreg anninflat2 i.leftist##ib(2).year if success==0, re

Random-effects GLS regression                   Number of obs     =        628
Group variable: revid                           Number of groups  =         60

R-sq:                                           Obs per group:
     within  = 0.0171                                         min =          2
     between = 0.0156                                         avg =       10.5
     overall = 0.0203                                         max =         11

                                                Wald chi2(21)     =      10.70
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.9683

------------------------------------------------------------------------------
  anninflat2 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |   19.19633   15.87545     1.21   0.227    -11.91898    50.31164
             |
        year |
          0  |    -2.0217   15.98607    -0.13   0.899    -33.35383    29.31043
          1  |  -3.538957   15.98607    -0.22   0.825    -34.87108    27.79317
          3  |   1.440822   15.98607     0.09   0.928     -29.8913    32.77295
          4  |   3.860491   15.98607     0.24   0.809    -27.47163    35.19262
          5  |   20.68226   15.81536     1.31   0.191    -10.31528    51.67979
          6  |    11.8254   16.03007     0.74   0.461    -19.59296    43.24376
          7  |   .5990687   16.26169     0.04   0.971    -31.27326     32.4714
          8  |  -3.043978   16.51309    -0.18   0.854    -35.40903    29.32107
          9  |   .9372613    17.0913     0.05   0.956    -32.56106    34.43559
         10  |  -3.226602    17.0913    -0.19   0.850    -36.72493    30.27172
             |
leftist#year |
       1  0  |  -14.93087   19.85127    -0.75   0.452    -53.83866    23.97691
       1  1  |   .2710601   19.74986     0.01   0.989    -38.43795    38.98007
       1  3  |  -7.938335   19.74986    -0.40   0.688    -46.64734    30.77067
       1  4  |  -9.548441   19.74986    -0.48   0.629    -48.25745    29.16057
       1  5  |  -25.48628   19.61193    -1.30   0.194    -63.92496    12.95241
       1  6  |  -14.18943   19.78549    -0.72   0.473    -52.96827    24.58941
       1  7  |   -12.5618   19.97361    -0.63   0.529    -51.70935    26.58575
       1  8  |   -14.2879   20.17881    -0.71   0.479    -53.83764    25.26184
       1  9  |  -7.549727    20.6207    -0.37   0.714    -47.96555     32.8661
       1 10  |  -11.90046    20.6207    -0.58   0.564    -52.31629    28.51536
             |
       _cons |   15.21861   12.83931     1.19   0.236    -9.945978    40.38319
-------------+----------------------------------------------------------------
     sigma_u |  27.413712
     sigma_e |  50.114152
         rho |  .23031733   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year

Adjusted predictions                            Number of obs     =        628
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   13.19691   12.83931     1.03   0.304    -11.96768    38.36149
       0  1  |   11.67965   12.83931     0.91   0.363    -13.48494    36.84424
       0  2  |   15.21861   12.83931     1.19   0.236    -9.945978    40.38319
       0  3  |   16.65943   12.83931     1.30   0.194    -8.505156    41.82402
       0  4  |    19.0791   12.83931     1.49   0.137    -6.085487    44.24368
       0  5  |   35.90086   12.57408     2.86   0.004     11.25612    60.54561
       0  6  |   27.04401   12.83919     2.11   0.035     1.879657    52.20836
       0  7  |   15.81768   13.12342     1.21   0.228    -9.903761    41.53911
       0  8  |   12.17463    13.4299     0.91   0.365    -14.14749    38.49675
       0  9  |   16.15587   14.12697     1.14   0.253    -11.53249    43.84423
       0 10  |   11.99201   14.12697     0.85   0.396    -15.69635    39.68036
       1  0  |   17.46236   9.549776     1.83   0.067    -1.254854    36.17958
       1  1  |   31.14704   9.337131     3.34   0.001      12.8466    49.44748
       1  2  |   34.41494   9.337131     3.69   0.000      16.1145    52.71538
       1  3  |   27.91742   9.337131     2.99   0.003     9.616984    46.21787
       1  4  |   28.72699   9.337131     3.08   0.002     10.42655    47.02743
       1  5  |   29.61092   9.337131     3.17   0.002     11.31048    47.91136
       1  6  |   32.05091   9.337131     3.43   0.001     13.75047    50.35135
       1  7  |   22.45221   9.337131     2.40   0.016     4.151766    40.75265
       1  8  |   17.08306   9.337131     1.83   0.067    -1.217377     35.3835
       1  9  |   27.80247   9.226853     3.01   0.003     9.718172    45.88677
       1 10  |   19.28787   9.226853     2.09   0.037      1.20357    37.37217
------------------------------------------------------------------------------

. 
. * Comparison of successful urban civic with matched counterparts
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. * Must alter variable name due to reshaping of data
. generate anninflatwi = anninflat2 
(434 missing values generated)

. global yvar = "anninflatwi"

. quietly: chp9matchmultimp

. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        858

Group variable: diffid                          Number of groups  =         78
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3930
                                                Largest FMI       =     0.2059
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      17.01
                                                        avg       =      21.50
                                                        max       =      22.22
Model F test:       Equal FMI                   F(  20,   20.2)   =       1.10
Within VCE type:       Robust                   Prob > F          =     0.4183

                                (Within VCE adjusted for 25 clusters in revid)
------------------------------------------------------------------------------
 anninflatwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -10.4598   9.218697    -1.13   0.269    -29.56713    8.647532
          1  |   -10.0762   8.675663    -1.16   0.258      -28.058    7.905595
          3  |   6.962128   7.477237     0.93   0.362    -8.535725    22.45998
          4  |   2.002628   11.42523     0.18   0.862    -21.67811    25.68337
          5  |   1.080547   11.43139     0.09   0.926    -22.61297    24.77407
          6  |   7.736038   13.64077     0.57   0.576    -20.54925    36.02133
          7  |   6.128853   13.67276     0.45   0.658     -22.2226    34.48031
          8  |    5.50314   15.03802     0.37   0.718    -25.70035    36.70663
          9  |   3.770692   14.44415     0.26   0.797    -26.23274    33.77412
         10  |  -6.901566   12.70002    -0.54   0.593    -33.30431    19.50118
             |
  revny#year |
       1  0  |   11.92603   8.491862     1.40   0.174    -5.674806    29.52687
       1  1  |   10.40411   8.199553     1.27   0.218     -6.59087    27.39909
       1  3  |   .5572629   9.354058     0.06   0.953    -18.83063    19.94515
       1  4  |   26.40371   18.92022     1.40   0.177    -12.82711    65.63452
       1  5  |   14.22887   14.31268     0.99   0.331    -15.44924    43.90697
       1  6  |   9.911349   15.51282     0.64   0.530    -22.29756    42.12026
       1  7  |   11.74295   15.85936     0.74   0.467    -21.21286    44.69875
       1  8  |   -1.62053   14.76438    -0.11   0.914    -32.38207    29.14101
       1  9  |   4.288396   15.97603     0.27   0.792    -29.41714    37.99393
       1 10  |   19.43254   19.48463     1.00   0.331    -21.37651     60.2416
             |
       _cons |   15.89543   5.937777     2.68   0.014     3.588371    28.20249
-------------+----------------------------------------------------------------
     sigma_u |  34.323804
     sigma_e |  38.594163
         rho |  .44163629   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        858
                                                Average RVI       =    13.0349
                                                Largest FMI       =     0.4511
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      10.66
                                                        avg       =      20.81
Within VCE type: Delta-method                           max       =      22.22

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   5.435635   6.617871     0.82   0.420    -8.281036    19.15231
          2  |   5.819228   5.844901     1.00   0.330     -6.29533    17.93379
          3  |   15.89543   5.937777     2.68   0.014     3.588371    28.20249
          4  |   22.85756   4.005473     5.71   0.000     14.55553    31.15959
          5  |   17.89806   6.713459     2.67   0.014     3.983265    31.81285
          6  |   16.97598   6.294676     2.70   0.013     3.929184    30.02277
          7  |   23.63147   8.627817     2.74   0.012     5.728388    41.53455
          8  |   22.02429   8.648994     2.55   0.018     4.077531    39.97104
          9  |   21.39857   10.77923     1.99   0.060    -.9943471    43.79149
         10  |   19.66612   10.38276     1.89   0.072    -1.954474    41.28672
         11  |   8.993866   9.581949     0.94   0.359    -10.98371    28.97144
         12  |   17.36167    5.50632     3.15   0.005     5.948876    28.77446
         13  |   16.22334   5.605478     2.89   0.008     4.605022    27.84165
         14  |   15.89543   5.937777     2.68   0.014     3.588371    28.20249
         15  |   23.41482   7.211092     3.25   0.004       8.4686    38.36105
         16  |   44.30176    14.0779     3.15   0.005     15.10181    73.50172
         17  |   31.20484   9.492261     3.29   0.003     11.51086    50.89883
         18  |   33.54282   9.374663     3.58   0.002     14.04707    53.03857
         19  |   33.76723   9.427721     3.58   0.002     14.13962    53.39485
         20  |   19.77804   5.819526     3.40   0.003      7.51018     32.0459
         21  |   23.95452   7.989064     3.00   0.013     6.302924    41.60611
         22  |   28.42641   12.54464     2.27   0.037     1.920123    54.93269
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 25 revolutions and 53 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 6.9 percent of observations

. drop anninflatwi

. * Complete case sample as robustness check
. use matcheddiffindifflong.dta, clear

. xtreg anninflat2 i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       846
Group variable: diffid                          Number of groups   =        84

R-sq:  within  = 0.0473                         Obs per group: min =         4
       between = 0.0007                                        avg =      10.1
       overall = 0.0131                                        max =        11

                                                F(20,25)           =      2.34
corr(u_i, Xb)  = -0.0902                        Prob > F           =    0.0225

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  anninflat2 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -10.4624   9.143425    -1.14   0.263    -29.29363     8.36884
          1  |  -10.03586   8.615149    -1.16   0.255    -27.77909    7.707373
          3  |   6.706168   7.425296     0.90   0.375    -8.586515    21.99885
          4  |   1.785249    11.3388     0.16   0.876    -21.56744    25.13794
          5  |   .3394449    11.2114     0.03   0.976    -22.75087    23.42976
          6  |   7.303666   13.86384     0.53   0.603    -21.24945    35.85678
          7  |   6.397787   13.97839     0.46   0.651    -22.39125    35.18682
          8  |    2.74279   15.28334     0.18   0.859    -28.73385    34.21943
          9  |   .5585319   14.48535     0.04   0.970     -29.2746    30.39166
         10  |  -12.80891   12.74629    -1.00   0.325    -39.06039    13.44257
             |
  revny#year |
       1  0  |   11.92863   8.433493     1.41   0.170    -5.440472    29.29774
       1  1  |   10.36376   8.133272     1.27   0.214    -6.387025    27.11455
       1  3  |   .8132227   9.297934     0.09   0.931    -18.33623    19.96268
       1  4  |   27.35194   18.99183     1.44   0.162    -11.76247    66.46635
       1  5  |   15.51341   14.12346     1.10   0.282    -13.57439    44.60121
       1  6  |   9.613855   16.26694     0.59   0.560    -23.88854    43.11625
       1  7  |   13.76097   16.34988     0.84   0.408    -19.91225    47.43418
       1  8  |   .6353355   14.80414     0.04   0.966    -29.85437    31.12504
       1  9  |   2.658149    15.2458     0.17   0.863    -28.74115    34.05745
       1 10  |   24.06042   21.05203     1.14   0.264    -19.29704    67.41789
             |
       _cons |   16.96721    5.97822     2.84   0.009     4.654838    29.27959
-------------+----------------------------------------------------------------
     sigma_u |  33.183631
     sigma_e |  38.690639
         rho |  .42382715   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        846
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   6.504815   6.454369     1.01   0.314    -6.145515    19.15515
       0  1  |   6.931353   5.674027     1.22   0.222    -4.189534    18.05224
       0  2  |   16.96721    5.97822     2.84   0.005     5.250117    28.68431
       0  3  |   23.67338   3.968529     5.97   0.000     15.89521    31.45155
       0  4  |   18.75246   6.516649     2.88   0.004     5.980064    31.52486
       0  5  |   17.30666   5.989958     2.89   0.004     5.566555    29.04676
       0  6  |   24.27088   8.778074     2.76   0.006      7.06617    41.47559
       0  7  |     23.365   8.865669     2.64   0.008     5.988607    40.74139
       0  8  |      19.71   10.95822     1.80   0.072    -1.767722    41.18773
       0  9  |   17.52574    10.2696     1.71   0.088    -2.602296    37.65378
       0 10  |     4.1583   9.552546     0.44   0.663    -14.56435    22.88095
       1  0  |   18.43345   5.569696     3.31   0.001     7.517044    29.34985
       1  1  |   17.29512    5.62362     3.08   0.002     6.273024    28.31721
       1  2  |   16.96721    5.97822     2.84   0.005     5.250117    28.68431
       1  3  |    24.4866   7.225127     3.39   0.001     10.32561    38.64759
       1  4  |    46.1044    14.3434     3.21   0.001     17.99185    74.21695
       1  5  |   32.82007   9.633842     3.41   0.001     13.93809    51.70205
       1  6  |   33.88473   10.09565     3.36   0.001     14.09762    53.67184
       1  7  |   37.12596   9.960559     3.73   0.000     17.60363     56.6483
       1  8  |   20.34534   5.440051     3.74   0.000     9.683033    31.00764
       1  9  |   20.18389    7.03749     2.87   0.004     6.390666    33.97712
       1 10  |   28.21872    13.7928     2.05   0.041     1.185337    55.25211
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 58 matched cases

. 
. 
. *=========================================
. * EFFECT OF REVOLUTION ON GOVERNMENT DEBT
. *=========================================
. * Impact of revolutionary successs/failure on government debt
. * Multiple imputation
. clear

. use fullsamplediffindifflong.dta, clear

. * Must alter variable name due to reshaping of data
. global yvar = "debttogdp"

. quietly: chp9fullmultimp

. * Successful vs. failed
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year, fe

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =      1,177

Group variable: revid                           Number of groups  =        107
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0886
                                                Largest FMI       =     0.1488
                                                Complete DF       =       1050
DF adjustment:   Small sample                   DF:     min       =     444.58
                                                        avg       =     872.59
                                                        max       =   1,035.57
Model F test:       Equal FMI                   F(  20, 1031.9)   =       2.75
Within VCE type: Conventional                   Prob > F          =     0.0001

------------------------------------------------------------------------------
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   .3941819   3.829519     0.10   0.918    -7.120337    7.908701
          1  |  -.5716846   3.834593    -0.15   0.882     -8.09621     6.95284
          3  |   3.144985   3.832973     0.82   0.412    -4.376344    10.66631
          4  |   2.781882   3.827693     0.73   0.468    -4.729037     10.2928
          5  |    .941884   3.831233     0.25   0.806    -6.576013    8.459781
          6  |   2.087471   3.890334     0.54   0.592    -5.547403    9.722344
          7  |  -.5797105    3.97883    -0.15   0.884     -8.39126    7.231839
          8  |  -2.672614   3.906964    -0.68   0.494    -10.34055    4.995325
          9  |  -1.199041   4.001863    -0.30   0.765    -9.056849    6.658767
         10  |   .6405652   4.063451     0.16   0.875    -7.341444    8.622575
             |
success#year |
       1  0  |  -2.011855   5.670049    -0.35   0.723    -13.13809    9.114376
       1  1  |   1.043371   5.672356     0.18   0.854    -10.08741    12.17416
       1  3  |   9.616937   5.673421     1.70   0.090     -1.51595    20.74982
       1  4  |   13.69817   5.702201     2.40   0.016     2.508406    24.88794
       1  5  |   16.78422   5.751283     2.92   0.004     5.497132    28.07131
       1  6  |   12.48384   5.773378     2.16   0.031     1.152816    23.81487
       1  7  |   13.55348   5.919327     2.29   0.022     1.930395    25.17657
       1  8  |   12.89087    5.81555     2.22   0.027      1.47577    24.30596
       1  9  |   8.537864   6.097678     1.40   0.162     -3.44599    20.52172
       1 10  |   4.958838   5.960629     0.83   0.406    -6.747441    16.66512
             |
       _cons |   47.46419   1.997009    23.77   0.000     43.54551    51.38288
-------------+----------------------------------------------------------------
     sigma_u |  34.429104
     sigma_e |  20.526473
         rho |  .73776294   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =      1,177
                                                Average RVI       =     0.0886
                                                Largest FMI       =     0.2171
                                                Complete DF       =       1050
DF adjustment:   Small sample                   DF:     min       =     277.81
                                                        avg       =     822.72
Within VCE type: Delta-method                           max       =   1,035.12

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   47.85837   3.268457    14.64   0.000     41.44482    54.27193
          2  |   46.89251   3.272966    14.33   0.000     40.47006    53.31495
          3  |   47.46419   1.997009    23.77   0.000     43.54551    51.38288
          4  |   50.60918   3.277393    15.44   0.000     44.17799    57.04036
          5  |   50.24607    3.26854    15.37   0.000     43.83235    56.65979
          6  |   48.40608   3.273816    14.79   0.000     41.98195     54.8302
          7  |   49.55166   3.330603    14.88   0.000     43.01505    56.08828
          8  |   46.88448   3.432773    13.66   0.000     40.14332    53.62564
          9  |   44.79158   3.362272    13.32   0.000     38.19184    51.39131
         10  |   46.26515   3.465912    13.35   0.000     39.45711    53.07319
         11  |   48.10476   3.507997    13.71   0.000     41.21145    54.99807
         12  |   45.84652   3.668776    12.50   0.000     38.64731    53.04573
         13  |   47.93588   3.666093    13.08   0.000     40.74197    55.12979
         14  |   47.46419   1.997009    23.77   0.000     43.54551    51.38288
         15  |   60.22611    3.69069    16.32   0.000     52.98358    67.46865
         16  |   63.94425   3.728694    17.15   0.000     56.62629     71.2622
         17  |    65.1903   3.777895    17.26   0.000     57.77417    72.60642
         18  |    62.0355   3.793584    16.35   0.000     54.58796    69.48305
         19  |   60.43797   3.800547    15.90   0.000     52.97646    67.89947
         20  |   57.68245      3.792    15.21   0.000     50.23807    65.12682
         21  |   54.80302    4.10489    13.35   0.000     46.72238    62.88366
         22  |    53.0636   4.009922    13.23   0.000     45.17782    60.94937
------------------------------------------------------------------------------

. mi xeq 1: tab success if e(N_mi) & year==2

m=1 data:
-> tab success if e(N_mi) & year==2

 Opposition |
    success |
    (binary |
    outcome |
  variable) |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         58       54.21       54.21
          1 |         49       45.79      100.00
------------+-----------------------------------
      Total |        107      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 10.4 percent of observations

. * Complete case sample as robustness check
. clear

. use fullsamplediffindifflong.dta, clear

. xtreg $yvar i.success##ib(2).year, fe
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =      1,227
Group variable: revid                           Number of groups  =        143

R-sq:                                           Obs per group:
     within  = 0.0621                                         min =          1
     between = 0.0034                                         avg =        8.6
     overall = 0.0286                                         max =         11

                                                F(20,1064)        =       3.52
corr(u_i, Xb)  = 0.0379                         Prob > F          =     0.0000

------------------------------------------------------------------------------
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   .0450228   4.798309     0.01   0.993    -9.370199    9.460245
          1  |  -.8919403    4.82274    -0.18   0.853     -10.3551    8.571222
          3  |    3.60286   4.656433     0.77   0.439    -5.533975    12.73969
          4  |   .0164464   4.663294     0.00   0.997    -9.133851    9.166744
          5  |   .9152618   4.694264     0.19   0.845    -8.295805    10.12633
          6  |   2.055883   4.758243     0.43   0.666    -7.280724    11.39249
          7  |  -1.039915   4.759388    -0.22   0.827    -10.37877    8.298938
          8  |  -2.341255   4.710505    -0.50   0.619    -11.58419    6.901678
          9  |  -2.283991   4.721007    -0.48   0.629    -11.54753     6.97955
         10  |  -2.877226   4.799431    -0.60   0.549    -12.29465    6.540199
             |
success#year |
       1  0  |  -1.979037   7.108695    -0.28   0.781    -15.92769    11.96962
       1  1  |   1.182625   7.107324     0.17   0.868    -12.76334    15.12859
       1  3  |   16.56574   6.942551     2.39   0.017     2.943097    30.18839
       1  4  |   20.01755   6.941345     2.88   0.004     6.397266    33.63783
       1  5  |   17.55206   6.973474     2.52   0.012     3.868735    31.23538
       1  6  |   14.96741     6.9992     2.14   0.033     1.233612    28.70122
       1  7  |   12.10068   7.085772     1.71   0.088    -1.802992    26.00436
       1  8  |   8.031496   7.097946     1.13   0.258    -5.896066    21.95906
       1  9  |   2.450024   7.110231     0.34   0.730    -11.50164    16.40169
       1 10  |   1.400291   7.110075     0.20   0.844    -12.55107    15.35165
             |
       _cons |    52.1647   2.541956    20.52   0.000     47.17688    57.15251
-------------+----------------------------------------------------------------
     sigma_u |  66.807553
     sigma_e |  25.214712
         rho |  .87531322   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(142, 1064) = 32.50                  Prob > F = 0.0000

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =      1,227
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   52.20972   4.085497    12.78   0.000      44.2023    60.21715
       0  1  |   51.27276   4.113506    12.46   0.000     43.21044    59.33508
       0  2  |    52.1647   2.541956    20.52   0.000     47.18256    57.14684
       0  3  |   55.76756   3.896123    14.31   0.000      48.1313    63.40382
       0  4  |   52.18114   3.900373    13.38   0.000     44.53655    59.82574
       0  5  |   53.07996   3.933312    13.49   0.000     45.37081    60.78911
       0  6  |   54.22058   3.993952    13.58   0.000     46.39258    62.04858
       0  7  |   51.12478   3.994229    12.80   0.000     43.29624    58.95333
       0  8  |   49.82344   3.927089    12.69   0.000     42.12649     57.5204
       0  9  |   49.88071   3.938105    12.67   0.000     42.16216    57.59925
       0 10  |   49.28747   4.024239    12.25   0.000     41.40011    57.17484
       1  0  |   50.23068   4.634524    10.84   0.000     41.14718    59.31418
       1  1  |   52.45538   4.603859    11.39   0.000     43.43199    61.47878
       1  2  |    52.1647   2.541956    20.52   0.000     47.18256    57.14684
       1  3  |    72.3333   4.513745    16.03   0.000     63.48652    81.18008
       1  4  |   72.19869   4.494356    16.06   0.000     63.38992    81.00747
       1  5  |   70.63202   4.502531    15.69   0.000     61.80722    79.45682
       1  6  |     69.188   4.465063    15.50   0.000     60.43663    77.93936
       1  7  |   63.22547    4.59156    13.77   0.000     54.22617    72.22476
       1  8  |   57.85494   4.656129    12.43   0.000     48.72909    66.98078
       1  9  |   52.33073   4.658206    11.23   0.000     43.20082    61.46065
       1 10  |   50.68776     4.5689    11.09   0.000     41.73288    59.64264
------------------------------------------------------------------------------

. 
. * Impact of social and urban civic revolutions on government debt
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "debttogdp"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =        286

Group variable: revid                           Number of groups  =         26
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3093
                                                Largest FMI       =     0.2713
                                                Complete DF       =         25
                                                DF:     min       =      16.57
                                                        avg       =      21.68
DF adjustment:   Small sample                           max       =      23.20
                                                F(  14,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   1.496789   2.589822     0.58   0.569    -3.882918    6.876495
          1  |   1.039906   1.822411     0.57   0.574    -2.748173    4.827985
          3  |   6.510816   3.312857     1.97   0.062    -.3486193    13.37025
          4  |   8.042179   4.403425     1.83   0.081    -1.069524    17.15388
          5  |   6.668048   4.579393     1.46   0.159    -2.816271    16.15237
          6  |    8.02627   6.090484     1.32   0.201    -4.608002    20.66054
          7  |   3.251363   6.041768     0.54   0.596    -9.338588    15.84131
          8  |   3.102529    6.01862     0.52   0.612    -9.540851    15.74591
          9  |   1.618009   6.780593     0.24   0.814    -12.71614    15.95216
         10  |  -.1098342   5.875428    -0.02   0.985    -12.45229    12.23262
             |
leftist#year |
       1  0  |  -2.204287   2.929197    -0.75   0.460    -8.282057    3.873483
       1  1  |  -1.714906   2.095997    -0.82   0.422    -6.065317    2.635506
       1  3  |   12.34785   13.16382     0.94   0.358     -14.9605    39.65621
       1  4  |   22.22782   19.66012     1.13   0.270    -18.42303    62.87867
       1  5  |   25.04695   19.35167     1.29   0.208    -14.96814    65.06204
       1  6  |   27.13623   21.33698     1.27   0.216     -16.9908    71.26326
       1  7  |   43.44864   32.49625     1.34   0.194    -23.75509    110.6524
       1  8  |   32.70247   31.28265     1.05   0.307    -32.00354    97.40848
       1  9  |   40.75199   35.73748     1.14   0.266    -33.17551    114.6795
       1 10  |   36.92234   21.28888     1.73   0.096    -7.131528     80.9762
             |
       _cons |   51.17431   3.586412    14.27   0.000     43.75272     58.5959
-------------+----------------------------------------------------------------
     sigma_u |  36.954134
     sigma_e |  18.316954
         rho |  .80277051   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =        286
                                                Average RVI       =     3.9056
                                                Largest FMI       =     0.3413
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      14.79
                                                        avg       =      21.81
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    52.6711   4.790257    11.00   0.000     42.76337    62.57883
          2  |   52.21422   4.165046    12.54   0.000     43.60239    60.82605
          3  |   51.17431   3.586412    14.27   0.000     43.75272     58.5959
          4  |   57.68513   3.340984    17.27   0.000     50.77708    64.59317
          5  |   59.21649   3.808902    15.55   0.000     51.34101    67.09197
          6  |   57.84236   3.867271    14.96   0.000     49.83816    65.84656
          7  |   59.20058   5.108976    11.59   0.000     48.60001    69.80115
          8  |   54.42567   4.803468    11.33   0.000     44.37865     64.4727
          9  |   54.27684   4.862157    11.16   0.000      43.9731    64.58058
         10  |   52.79232   5.787692     9.12   0.000      40.4412    65.14343
         11  |   51.06448   5.279133     9.67   0.000     39.93357    62.19538
         12  |   50.46681   4.562859    11.06   0.000     41.02773    59.90589
         13  |   50.49931   4.301849    11.74   0.000     41.59958    59.39904
         14  |   51.17431   3.586412    14.27   0.000     43.75272     58.5959
         15  |   70.03298   10.72729     6.53   0.000     47.73829    92.32766
         16  |   81.44431   16.80726     4.85   0.000      46.6923    116.1963
         17  |   82.88931   16.51336     5.02   0.000     48.74493    117.0337
         18  |   86.33681    18.1024     4.77   0.000     48.90704    123.7666
         19  |   97.87431   29.47936     3.32   0.003     36.92201    158.8266
         20  |   86.97931   28.31266     3.07   0.005     28.43924    145.5194
         21  |   93.54431   32.68587     2.86   0.009     25.96228    161.1263
         22  |   87.98681   18.12901     4.85   0.000     50.50204    125.4716
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         22       84.62       84.62
          1 |          4       15.38      100.00
------------+-----------------------------------
      Total |         26      100.00

. * Failed social vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==0, fe vce(robust)

Imputations (20):
  .........10.........20 done

Multiple-imputation estimates                   Imputations       =         20
Fixed-effects (within) regression               Number of obs     =        462

Group variable: revid                           Number of groups  =         42
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3491
                                                Largest FMI       =     0.1506
                                                Complete DF       =         41
DF adjustment:   Small sample                   DF:     min       =      32.49
                                                        avg       =      36.69
                                                        max       =      39.14
Model F test:       Equal FMI                   F(  20,   37.3)   =       1.07
Within VCE type:       Robust                   Prob > F          =     0.4197

                                (Within VCE adjusted for 42 clusters in revid)
------------------------------------------------------------------------------
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   1.808421    2.47789     0.73   0.470    -3.203027    6.819869
          1  |       1.06   1.589433     0.67   0.509    -2.154573    4.274573
          3  |   .0252634   2.345204     0.01   0.991    -4.717832    4.768359
          4  |   1.433158   3.683046     0.39   0.699    -6.015675    8.881991
          5  |    1.77195   3.687982     0.48   0.634     -5.69041    9.234311
          6  |   4.392555   4.807108     0.91   0.367    -5.346574    14.13168
          7  |  -1.135209   5.162376    -0.22   0.827    -11.61101    9.340594
          8  |   1.246801   5.250275     0.24   0.814     -9.40782    11.90142
          9  |   1.904693   6.235904     0.31   0.762    -10.77883    14.58821
         10  |   3.606194   6.584419     0.55   0.588    -9.797925    17.01031
             |
leftist#year |
       1  0  |  -1.875975   3.059893    -0.61   0.544    -8.082123    4.330173
       1  1  |  -.6284184   2.224015    -0.28   0.779    -5.144532    3.887695
       1  3  |   6.744211   4.130213     1.63   0.111    -1.611421    15.09984
       1  4  |   2.862668   5.186897     0.55   0.584    -7.633831    13.35917
       1  5  |    .542644    5.04236     0.11   0.915    -9.667043    10.75233
       1  6  |  -2.321316   6.051407    -0.38   0.704    -14.60541     9.96278
       1  7  |   2.467961   6.292849     0.39   0.697    -10.30425    15.24017
       1  8  |   1.006914   6.771972     0.15   0.883    -12.71993    14.73375
       1  9  |   .9734936   8.030394     0.12   0.904    -15.32069    17.26767
       1 10  |  -1.513742   8.296718    -0.18   0.856    -18.35622    15.32873
             |
       _cons |   36.73338   1.900031    19.33   0.000     32.88904    40.57772
-------------+----------------------------------------------------------------
     sigma_u |  25.117456
     sigma_e |  12.480871
         rho |  .80198258   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         20
Adjusted predictions                            Number of obs     =        462
                                                Average RVI       =     2.3267
                                                Largest FMI       =     0.1954
                                                Complete DF       =         41
DF adjustment:   Small sample                   DF:     min       =      30.28
                                                        avg       =      36.50
Within VCE type: Delta-method                           max       =      38.99

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    38.5418   3.145985    12.25   0.000     32.17822    44.90539
          2  |   37.79338    2.57574    14.67   0.000     32.58288    43.00388
          3  |   36.73338   1.900031    19.33   0.000     32.88904    40.57772
          4  |   36.75865   2.189386    16.79   0.000     32.32932    41.18797
          5  |   38.16654   3.063095    12.46   0.000     31.97057    44.36251
          6  |   38.50533   2.913119    13.22   0.000     32.60923    44.40144
          7  |   41.12594   3.964328    10.37   0.000     33.08929    49.16259
          8  |   35.59817   4.220014     8.44   0.000     27.01546    44.18089
          9  |   37.98018    4.30581     8.82   0.000     29.22321    46.73716
         10  |   38.63808   5.333169     7.24   0.000     27.75895    49.51721
         11  |   40.33958   5.662854     7.12   0.000      28.7789    51.90025
         12  |   36.66583   2.600414    14.10   0.000     31.39132    41.94033
         13  |   37.16496   2.437514    15.25   0.000     32.22626    42.10367
         14  |   36.73338   1.900031    19.33   0.000     32.88904    40.57772
         15  |   43.50286   2.894977    15.03   0.000     37.64717    49.35854
         16  |   41.02921   2.937916    13.97   0.000     35.07712     46.9813
         17  |   39.04798   2.758912    14.15   0.000     33.45246    44.64349
         18  |   38.80462   2.725665    14.24   0.000     33.25834    44.35091
         19  |   38.06613   2.724477    13.97   0.000     32.52866    43.60361
         20  |    38.9871   3.280958    11.88   0.000      32.3476     45.6266
         21  |   39.61157   4.155416     9.53   0.000     31.20635    48.01679
         22  |   38.82584   4.200783     9.24   0.000     30.32629    47.32538
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==0

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==0

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         19       45.24       45.24
          1 |         23       54.76      100.00
------------+-----------------------------------
      Total |         42      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 10.4 percent of observations

. * Complete case sample as robustness check
. clear

. use simplediffindifflong.dta, clear

. xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        299
Group variable: revid                           Number of groups  =         33

R-sq:                                           Obs per group:
     within  = 0.1712                                         min =          1
     between = 0.0402                                         avg =        9.1
     overall = 0.0017                                         max =         11

                                                F(15,32)          =          .
corr(u_i, Xb)  = -0.2797                        Prob > F          =          .

                                 (Std. Err. adjusted for 33 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   2.632422   3.087672     0.85   0.400    -3.656961    8.921805
          1  |   2.395019   2.125454     1.13   0.268    -1.934389    6.724428
          3  |    13.8053   6.863599     2.01   0.053    -.1753967    27.78599
          4  |   9.692021   4.329137     2.24   0.032     .8738584    18.51018
          5  |   6.545753   4.452457     1.47   0.151    -2.523606    15.61511
          6  |    12.2287   7.646877     1.60   0.120    -3.347478    27.80488
          7  |   1.031905   5.765822     0.18   0.859    -10.71269     12.7765
          8  |  -4.332356   6.493659    -0.67   0.509    -17.55951    8.894794
          9  |  -4.895856   5.961589    -0.82   0.418    -17.03922    7.247503
         10  |  -7.344358    6.53563    -1.12   0.269      -20.657    5.968284
             |
leftist#year |
       1  0  |   -3.33992   3.374149    -0.99   0.330    -10.21284    3.532996
       1  1  |  -3.070019   2.361582    -1.30   0.203    -7.880405    1.740367
       1  3  |   4.369963   17.19832     0.25   0.801    -30.66186    39.40179
       1  4  |   19.84202   20.80653     0.95   0.347    -22.53951    62.22354
       1  5  |   23.25662   20.51959     1.13   0.265    -18.54042    65.05365
       1  6  |     24.107   22.56319     1.07   0.293    -21.85272    70.06672
       1  7  |    43.2038   29.46421     1.47   0.152    -16.81284    103.2204
       1  8  |   43.33473   28.73566     1.51   0.141     -15.1979    101.8674
       1  9  |   45.15656   31.46472     1.44   0.161    -18.93498    109.2481
       1 10  |   43.96506   22.19915     1.98   0.056    -1.253124    89.18325
             |
       _cons |    50.1105   4.345028    11.53   0.000     41.25997    58.96103
-------------+----------------------------------------------------------------
     sigma_u |  43.088862
     sigma_e |   21.60606
         rho |  .79908436   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        299
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   52.74292   5.614881     9.39   0.000     41.73796    63.74789
       0  1  |   52.50552   4.913434    10.69   0.000     42.87537    62.13568
       0  2  |    50.1105   4.345028    11.53   0.000      41.5944     58.6266
       0  3  |    63.9158   7.568469     8.45   0.000     49.08187    78.74973
       0  4  |   59.80252   4.682183    12.77   0.000     50.62561    68.97943
       0  5  |   56.65626   4.645671    12.20   0.000     47.55091     65.7616
       0  6  |    62.3392   7.554629     8.25   0.000      47.5324      77.146
       0  7  |   51.14241   5.352834     9.55   0.000     40.65105    61.63377
       0  8  |   45.77815   6.124057     7.48   0.000     33.77522    57.78108
       0  9  |   45.21465   5.821338     7.77   0.000     33.80503    56.62426
       0 10  |   42.76614   6.600744     6.48   0.000     29.82892    55.70337
       1  0  |     49.403   5.426683     9.10   0.000      38.7669    60.03911
       1  1  |    49.4355   5.140749     9.62   0.000     39.35982    59.51119
       1  2  |    50.1105   4.345028    11.53   0.000      41.5944     58.6266
       1  3  |   68.28576   12.34825     5.53   0.000     44.08364    92.48788
       1  4  |   79.64454   16.83247     4.73   0.000     46.65351    112.6356
       1  5  |   79.91287   16.55953     4.83   0.000     47.45679     112.369
       1  6  |    86.4462   17.72897     4.88   0.000     51.69805    121.1944
       1  7  |   94.34621   25.31695     3.73   0.000     44.72591    143.9665
       1  8  |   89.11287   24.46361     3.64   0.000     41.16508    137.0607
       1  9  |    90.3712   27.35431     3.30   0.001     36.75774    143.9847
       1 10  |   86.73121   17.72318     4.89   0.000     51.99441     121.468
------------------------------------------------------------------------------

. xtreg $yvar i.leftist##ib(2).year if success==0, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        486
Group variable: revid                           Number of groups  =         58

R-sq:                                           Obs per group:
     within  = 0.0390                                         min =          1
     between = 0.0456                                         avg =        8.4
     overall = 0.0019                                         max =         11

                                                F(20,57)          =       1.68
corr(u_i, Xb)  = -0.0412                        Prob > F          =     0.0657

                                 (Std. Err. adjusted for 58 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   debttogdp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   1.808421    2.46683     0.73   0.467     -3.13132    6.748163
          1  |       1.06   1.582338     0.67   0.506    -2.108577    4.228577
          3  |   .0252634   2.334736     0.01   0.991    -4.649965    4.700492
          4  |  -4.663888   7.106225    -0.66   0.514    -18.89386    9.566081
          5  |   2.693015   3.683983     0.73   0.468    -4.684034    10.07006
          6  |   8.348596   5.567599     1.50   0.139    -2.800329    19.49752
          7  |   3.325729   5.266158     0.63   0.530    -7.219571    13.87103
          8  |   2.255541   5.317467     0.42   0.673    -8.392503    12.90358
          9  |   2.334368    5.48502     0.43   0.672    -8.649196    13.31793
         10  |   2.596961   6.820852     0.38   0.705    -11.06156    16.25548
             |
leftist#year |
       1  0  |  -3.319342   3.250403    -1.02   0.311    -9.828163    3.189478
       1  1  |  -1.768309   2.608374    -0.68   0.501    -6.991487    3.454869
       1  3  |   6.350936   4.161792     1.53   0.133     -1.98291    14.68478
       1  4  |   7.641658   7.967911     0.96   0.342    -8.313808    23.59713
       1  5  |   .1753074   5.097481     0.03   0.973    -10.03222    10.38284
       1  6  |  -5.683569   6.581952    -0.86   0.391     -18.8637    7.496562
       1  7  |  -1.862916   6.390695    -0.29   0.772    -14.66006    10.93423
       1  8  |  -.5437069   6.921203    -0.08   0.938    -14.40318    13.31576
       1  9  |   2.269533   7.445126     0.30   0.762    -12.63907    17.17814
       1 10  |   .6878852   8.409003     0.08   0.935    -16.15085    17.52662
             |
       _cons |   36.62376   2.066986    17.72   0.000     32.48469    40.76283
-------------+----------------------------------------------------------------
     sigma_u |  29.958305
     sigma_e |  13.424575
         rho |  .83277723   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        486
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   38.43218   3.308474    11.62   0.000     31.94769    44.91667
       0  1  |   37.68376   2.757473    13.67   0.000     32.27921    43.08831
       0  2  |   36.62376   2.066986    17.72   0.000     32.57254    40.67498
       0  3  |   36.64902   2.485684    14.74   0.000     31.77717    41.52087
       0  4  |   31.95987   7.022989     4.55   0.000     18.19506    45.72468
       0  5  |   39.31677   3.332483    11.80   0.000     32.78523    45.84832
       0  6  |   44.97236   5.098142     8.82   0.000     34.98018    54.96453
       0  7  |   39.94949   4.766436     8.38   0.000     30.60745    49.29153
       0  8  |    38.8793   4.731049     8.22   0.000     29.60661    48.15199
       0  9  |   38.95813   4.906281     7.94   0.000     29.34199    48.57426
       0 10  |   39.22072     6.1724     6.35   0.000     27.12304     51.3184
       1  0  |   35.11284   2.735972    12.83   0.000     29.75043    40.47524
       1  1  |   35.91545   2.583498    13.90   0.000     30.85189    40.97901
       1  2  |   36.62376   2.066986    17.72   0.000     32.57254    40.67498
       1  3  |   42.99996   2.515706    17.09   0.000     38.06927    47.93065
       1  4  |   39.60153   2.589741    15.29   0.000     34.52573    44.67733
       1  5  |   39.49208   2.472208    15.97   0.000     34.64664    44.33752
       1  6  |   39.28879    2.22575    17.65   0.000      34.9264    43.65118
       1  7  |   38.08657   2.236167    17.03   0.000     33.70377    42.46938
       1  8  |   38.33559   2.961682    12.94   0.000      32.5308    44.14038
       1  9  |   41.22766   3.688608    11.18   0.000     33.99812     48.4572
       1 10  |   39.90861   3.550176    11.24   0.000     32.95039    46.86682
------------------------------------------------------------------------------

. 
. 
. *======================================================================
. * EFFECT OF REVOLUTION ON V-DEM EQUALITY OF RESOURCES INDEX--FIGURE 9.8
. *======================================================================
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdeqdr"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
      vdeqdr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0057896   .0043907    -1.32   0.232    -.0163198    .0047407
          1  |   -.002092   .0011471    -1.82   0.114    -.0048431    .0006592
          3  |    .025013   .0159446     1.57   0.164    -.0132273    .0632532
          4  |   .0312814   .0171056     1.83   0.113    -.0097434    .0723061
          5  |   .0411686   .0204893     2.01   0.087    -.0079714    .0903087
          6  |   .0404315   .0208679     1.94   0.097    -.0096164    .0904795
          7  |    .044905   .0209157     2.15   0.072    -.0052576    .0950676
          8  |   .0501012   .0224015     2.24   0.063    -.0036249    .1038273
          9  |   .0520471   .0222821     2.34   0.055    -.0013924    .1054867
         10  |   .0529883   .0222522     2.38   0.051    -.0003797    .1063563
             |
  revny#year |
       1  0  |   .0057896   .0043907     1.32   0.232    -.0047407    .0163198
       1  1  |    .002092   .0011471     1.82   0.114    -.0006592    .0048431
       1  3  |   .1377183   .0782482     1.76   0.125    -.0499462    .3253827
       1  4  |   .2113567   .0866998     2.44   0.047     .0034225    .4192909
       1  5  |   .1991233   .0857247     2.32   0.056    -.0064723    .4047188
       1  6  |   .2081654    .087411     2.38   0.051    -.0014746    .4178053
       1  7  |   .2083358    .087228     2.39   0.051    -.0008651    .4175368
       1  8  |   .2083817   .0879175     2.37   0.052    -.0024728    .4192363
       1  9  |   .2051848   .0846184     2.42   0.048     .0022425    .4081271
       1 10  |   .2064173   .0857382     2.41   0.049     .0007894    .4120453
             |
       _cons |   .2188421   .0328362     6.66   0.000     .1400903     .297594
-------------+----------------------------------------------------------------
     sigma_u |  .21710164
     sigma_e |  .09028569
         rho |  .85255384   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .2130526   .0330527     6.45   0.000     .1337816    .2923236
          2  |   .2167502   .0333508     6.50   0.000     .1367641    .2967362
          3  |   .2188421   .0328362     6.66   0.000     .1400903     .297594
          4  |   .2438551   .0338067     7.21   0.000     .1627756    .3249346
          5  |   .2501235   .0326452     7.66   0.000     .1718299    .3284171
          6  |   .2600108   .0319198     8.15   0.000     .1834567    .3365649
          7  |   .2592737   .0323831     8.01   0.000     .1816085    .3369388
          8  |   .2637472   .0314592     8.38   0.000     .1882979    .3391965
          9  |   .2689433    .031121     8.64   0.000      .194305    .3435816
         10  |   .2708893   .0295651     9.16   0.000     .1999826     .341796
         11  |   .2718304   .0299503     9.08   0.000           .2    .3436608
         12  |   .2188421   .0328362     6.66   0.000     .1400903     .297594
         13  |   .2188421   .0328362     6.66   0.000     .1400903     .297594
         14  |   .2188421   .0328362     6.66   0.000     .1400903     .297594
         15  |   .3815733   .0553406     6.89   0.000     .2488486    .5142981
         16  |   .4614802   .0550594     8.38   0.000     .3294299    .5935306
         17  |    .459134   .0553944     8.29   0.000     .3262803    .5919877
         18  |    .467439   .0562631     8.31   0.000      .332502    .6023761
         19  |    .472083   .0572585     8.24   0.000     .3347587    .6094073
         20  |    .477325   .0586848     8.13   0.000     .3365799    .6180702
         21  |   .4760741   .0568899     8.37   0.000     .3396338    .6125144
         22  |   .4782477   .0573239     8.34   0.000     .3407665     .615729
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2710
                                                Largest FMI       =     0.1022
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.74
                                                        avg       =      22.89
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.9)   =       3.50
Within VCE type:       Robust                   Prob > F          =     0.0028

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
      vdeqdr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0083772   .0021062    -3.98   0.001     -.012732   -.0040224
          1  |  -.0050431   .0016962    -2.97   0.007    -.0085502    -.001536
          3  |  -.0086753   .0062016    -1.40   0.175    -.0214976    .0041471
          4  |  -.0070277    .005578    -1.26   0.220    -.0185609    .0045054
          5  |  -.0130119   .0067976    -1.91   0.068    -.0270666    .0010428
          6  |  -.0201575   .0099138    -2.03   0.054    -.0406566    .0003416
          7  |  -.0159129   .0113135    -1.41   0.173    -.0393193    .0074935
          8  |  -.0193108   .0118755    -1.63   0.118    -.0438817      .00526
          9  |  -.0172248   .0116727    -1.48   0.154    -.0414034    .0069538
         10  |  -.0153271   .0114965    -1.33   0.196    -.0391742    .0085199
             |
  revny#year |
       1  0  |   .0051378   .0041834     1.23   0.232    -.0035117    .0137873
       1  1  |   .0053334    .004483     1.19   0.246    -.0039357    .0146024
       1  3  |   .0260384   .0110547     2.36   0.027     .0031817    .0488951
       1  4  |   .0520592   .0161504     3.22   0.004     .0186667    .0854517
       1  5  |   .0578094   .0154867     3.73   0.001      .025786    .0898327
       1  6  |   .0561417   .0181472     3.09   0.005     .0186112    .0936722
       1  7  |   .0469918   .0202645     2.32   0.030     .0050582    .0889255
       1  8  |   .0528396   .0213513     2.47   0.021     .0086434    .0970358
       1  9  |   .0452581   .0209875     2.16   0.042     .0017803     .088736
       1 10  |   .0501826   .0223276     2.25   0.036     .0037146    .0966507
             |
       _cons |   .5026533   .0068793    73.07   0.000     .4884296     .516877
-------------+----------------------------------------------------------------
     sigma_u |  .25539835
     sigma_e |  .04663117
         rho |  .96773923   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     3.7736
                                                Largest FMI       =     0.1449
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.51
                                                        avg       =      22.69
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .4942761   .0073205    67.52   0.000     .4791403    .5094118
          2  |   .4976102   .0068445    72.70   0.000     .4834584     .511762
          3  |   .5026533   .0068793    73.07   0.000     .4884296     .516877
          4  |    .493978   .0078748    62.73   0.000     .4776961    .5102598
          5  |   .4956255    .007051    70.29   0.000     .4810468    .5102043
          6  |   .4896413   .0063925    76.60   0.000     .4764242    .5028585
          7  |   .4824958   .0081464    59.23   0.000     .4656505     .499341
          8  |   .4867404   .0094808    51.34   0.000     .4671201    .5063606
          9  |   .4833424   .0100956    47.88   0.000     .4624484    .5042365
         10  |   .4854285   .0098684    49.19   0.000     .4649702    .5058868
         11  |   .4873261   .0101352    48.08   0.000     .4662796    .5083727
         12  |   .4994138   .0077537    64.41   0.000     .4833822    .5154455
         13  |   .5029435   .0075993    66.18   0.000     .4872313    .5186558
         14  |   .5026533   .0068793    73.07   0.000     .4884296     .516877
         15  |   .5200164   .0086432    60.16   0.000     .5021457    .5378871
         16  |   .5476848   .0116044    47.20   0.000     .5236915     .571678
         17  |   .5474507    .010787    50.75   0.000     .5251431    .5697584
         18  |   .5386375   .0118426    45.48   0.000     .5141407    .5631342
         19  |   .5337322   .0126596    42.16   0.000     .5075077    .5599566
         20  |    .536182   .0132463    40.48   0.000     .5087104    .5636537
         21  |   .5306866   .0135725    39.10   0.000     .5024806    .5588927
         22  |   .5375088   .0147049    36.55   0.000      .506785    .5682326
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness check
. clear

. use matcheddiffindifflong.dta, clear

. xtreg vdeqdr i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.4742                         Obs per group: min =        11
       between = 0.0207                                        avg =      11.0
       overall = 0.0720                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.1133                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdeqdr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0057896   .0043907    -1.32   0.224    -.0159145    .0043354
          1  |   -.002092   .0011471    -1.82   0.106    -.0047372    .0005533
          3  |    .025013   .0159446     1.57   0.155    -.0117553    .0617813
          4  |   .0312814   .0171056     1.83   0.105    -.0081642    .0707269
          5  |   .0411686   .0204893     2.01   0.079    -.0060799    .0884171
          6  |   .0404315   .0208679     1.94   0.089    -.0076899     .088553
          7  |    .044905   .0209157     2.15   0.064    -.0033266    .0931367
          8  |   .0501012   .0224015     2.24   0.056    -.0015568    .1017592
          9  |   .0520471   .0222821     2.34   0.048     .0006646    .1034297
         10  |   .0529883   .0222522     2.38   0.044     .0016746     .104302
             |
  revny#year |
       1  0  |   .0057896   .0043907     1.32   0.224    -.0043354    .0159145
       1  1  |    .002092   .0011471     1.82   0.106    -.0005533    .0047372
       1  3  |   .1377183   .0782482     1.76   0.116    -.0427224    .3181589
       1  4  |   .2113567   .0866998     2.44   0.041     .0114266    .4112869
       1  5  |   .1991233   .0857247     2.32   0.049     .0014417    .3968048
       1  6  |   .2081654    .087411     2.38   0.044     .0065952    .4097356
       1  7  |   .2083358    .087228     2.39   0.044     .0071877     .409484
       1  8  |   .2083817   .0879175     2.37   0.045     .0056436    .4111198
       1  9  |   .2051848   .0846184     2.42   0.042     .0100545    .4003152
       1 10  |   .2064173   .0857382     2.41   0.043     .0087046      .40413
             |
       _cons |   .2188421   .0328362     6.66   0.000     .1431217    .2945626
-------------+----------------------------------------------------------------
     sigma_u |  .21710164
     sigma_e |  .09028569
         rho |  .85255384   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .2130526   .0330527     6.45   0.000     .1482705    .2778346
       0  1  |   .2167502   .0333508     6.50   0.000     .1513837    .2821166
       0  2  |   .2188421   .0328362     6.66   0.000     .1544844    .2831999
       0  3  |   .2438551   .0338067     7.21   0.000     .1775951    .3101151
       0  4  |   .2501235   .0326452     7.66   0.000     .1861402    .3141068
       0  5  |   .2600108   .0319198     8.15   0.000      .197449    .3225725
       0  6  |   .2592737   .0323831     8.01   0.000      .195804    .3227434
       0  7  |   .2637472   .0314592     8.38   0.000     .2020883     .325406
       0  8  |   .2689433    .031121     8.64   0.000     .2079472    .3299394
       0  9  |   .2708893   .0295651     9.16   0.000     .2129428    .3288358
       0 10  |   .2718304   .0299503     9.08   0.000      .213129    .3305318
       1  0  |   .2188421   .0328362     6.66   0.000     .1544844    .2831999
       1  1  |   .2188421   .0328362     6.66   0.000     .1544844    .2831999
       1  2  |   .2188421   .0328362     6.66   0.000     .1544844    .2831999
       1  3  |   .3815733   .0553406     6.89   0.000     .2731077     .490039
       1  4  |   .4614802   .0550594     8.38   0.000     .3535657    .5693947
       1  5  |    .459134   .0553944     8.29   0.000      .350563    .5677051
       1  6  |    .467439   .0562631     8.31   0.000     .3571654    .5777127
       1  7  |    .472083   .0572585     8.24   0.000     .3598585    .5843075
       1  8  |    .477325   .0586848     8.13   0.000     .3623049    .5923452
       1  9  |   .4760741   .0568899     8.37   0.000      .364572    .5875762
       1 10  |   .4782477   .0573239     8.34   0.000      .365895    .5906005
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg vdeqdr i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.0978                         Obs per group: min =         5
       between = 0.0015                                        avg =      10.4
       overall = 0.0004                                        max =        11

                                                F(20,25)           =     11.20
corr(u_i, Xb)  = -0.1062                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdeqdr |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0083841    .002108    -3.98   0.001    -.0127255   -.0040427
          1  |   -.005044   .0016985    -2.97   0.006    -.0085422   -.0015459
          3  |   -.008681   .0062101    -1.40   0.174    -.0214709    .0041089
          4  |  -.0070301   .0055859    -1.26   0.220    -.0185346    .0044744
          5  |  -.0130196   .0068068    -1.91   0.067    -.0270385    .0009993
          6  |  -.0202523   .0099872    -2.03   0.053    -.0408212    .0003167
          7  |  -.0151035   .0118385    -1.28   0.214    -.0394852    .0092783
          8  |  -.0191319   .0124004    -1.54   0.135     -.044671    .0064072
          9  |  -.0224496   .0116466    -1.93   0.065    -.0464363    .0015371
         10  |  -.0188214   .0113916    -1.65   0.111    -.0422829      .00464
             |
  revny#year |
       1  0  |   .0051447   .0041866     1.23   0.231    -.0034779    .0137672
       1  1  |   .0053343   .0044869     1.19   0.246    -.0039066    .0145752
       1  3  |   .0260441   .0110631     2.35   0.027     .0032592    .0488291
       1  4  |   .0520616   .0161617     3.22   0.004     .0187759    .0853473
       1  5  |   .0591034   .0159514     3.71   0.001     .0262509    .0919559
       1  6  |   .0574066   .0188444     3.05   0.005     .0185959    .0962173
       1  7  |    .051334   .0221603     2.32   0.029     .0056941    .0969739
       1  8  |   .0579071   .0231622     2.50   0.019     .0102037    .1056105
       1  9  |   .0592987   .0215406     2.75   0.011     .0149349    .1036625
       1 10  |   .0673491   .0224571     3.00   0.006     .0210978    .1136004
             |
       _cons |   .4929331   .0066841    73.75   0.000     .4791669    .5066993
-------------+----------------------------------------------------------------
     sigma_u |  .25602008
     sigma_e |  .04635074
         rho |  .96826352   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |    .484549   .0071138    68.11   0.000     .4706063    .4984917
       0  1  |   .4878891   .0066244    73.65   0.000     .4749054    .5008727
       0  2  |   .4929331   .0066841    73.75   0.000     .4798325    .5060337
       0  3  |   .4842521   .0075741    63.93   0.000      .469407    .4990971
       0  4  |    .485903   .0068418    71.02   0.000     .4724934    .4993126
       0  5  |   .4799135    .006277    76.46   0.000     .4676108    .4922161
       0  6  |   .4726808   .0082829    57.07   0.000     .4564467     .488915
       0  7  |   .4778296   .0101594    47.03   0.000     .4579176    .4977416
       0  8  |   .4738012   .0107838    43.94   0.000     .4526654     .494937
       0  9  |   .4704835   .0097019    48.49   0.000     .4514683    .4894988
       0 10  |   .4741117   .0099422    47.69   0.000     .4546253     .493598
       1  0  |   .4896937   .0076462    64.04   0.000     .4747073      .50468
       1  1  |   .4932234   .0075113    65.66   0.000     .4785016    .5079452
       1  2  |   .4929331   .0066841    73.75   0.000     .4798325    .5060337
       1  3  |   .5102962    .008625    59.16   0.000     .4933916    .5272009
       1  4  |   .5379646   .0118016    45.58   0.000     .5148339    .5610953
       1  5  |   .5390169   .0113793    47.37   0.000     .5167139    .5613199
       1  6  |   .5300875   .0124657    42.52   0.000     .5056551    .5545198
       1  7  |   .5291636   .0140143    37.76   0.000     .5016961    .5566312
       1  8  |   .5317083    .014471    36.74   0.000     .5033457    .5600709
       1  9  |   .5297822   .0145181    36.49   0.000     .5013274    .5582371
       1 10  |   .5414608   .0150267    36.03   0.000     .5120089    .5709126
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. *=========================================
. * EFFECT OF REVOLUTION ON HEALTH EQUALITY
. *=========================================
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdhealtheq"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
  vdhealtheq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0576532   .0309694    -1.86   0.108    -.1319278    .0166214
          1  |  -.0431164    .030023    -1.44   0.197    -.1151214    .0288885
          3  |   .0193815   .0423772     0.46   0.662    -.0822527    .1210156
          4  |    .065967   .0537345     1.23   0.262    -.0629058    .1948398
          5  |   .1150433   .0478485     2.40   0.050     .0002871    .2297994
          6  |   .1150433   .0478485     2.40   0.050     .0002871    .2297994
          7  |   .1150433   .0478485     2.40   0.050     .0002871    .2297994
          8  |   .1503615   .0724384     2.08   0.079    -.0233692    .3240922
          9  |   .1534324   .0732906     2.09   0.077    -.0223422     .329207
         10  |    .160322   .0754142     2.13   0.074    -.0205456    .3411896
             |
  revny#year |
       1  0  |   .0576532   .0309694     1.86   0.108    -.0166214    .1319278
       1  1  |   .0431164    .030023     1.44   0.197    -.0288885    .1151214
       1  3  |   .6472717   .3452772     1.87   0.106    -.1808146    1.475358
       1  4  |   1.036603   .4527012     2.29   0.058    -.0491211    2.122327
       1  5  |   .9875266   .4344964     2.27   0.060    -.0545363     2.02959
       1  6  |   1.010981   .4322269     2.34   0.054    -.0256386    2.047601
       1  7  |   1.010981   .4322269     2.34   0.054    -.0256386    2.047601
       1  8  |     .99945   .4244603     2.35   0.053    -.0185431    2.017443
       1  9  |   1.013417   .4171524     2.43   0.048     .0129506    2.013883
       1 10  |   1.007401   .4199082     2.40   0.050     .0003251    2.014477
             |
       _cons |  -1.269935   .1600339    -7.94   0.000    -1.653748   -.8861216
-------------+----------------------------------------------------------------
     sigma_u |  1.0525765
     sigma_e |  .44108353
         rho |  .85062658   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |  -1.327588    .164152    -8.09   0.000    -1.721277   -.9338982
          2  |  -1.313051   .1643329    -7.99   0.000    -1.707175   -.9189274
          3  |  -1.269935   .1600339    -7.94   0.000    -1.653748   -.8861216
          4  |  -1.250553   .1801896    -6.94   0.000    -1.682706   -.8184002
          5  |  -1.203968   .1634286    -7.37   0.000    -1.595922   -.8120129
          6  |  -1.154891   .1439357    -8.02   0.000    -1.500096    -.809687
          7  |  -1.154891   .1439357    -8.02   0.000    -1.500096    -.809687
          8  |  -1.154891   .1439357    -8.02   0.000    -1.500096    -.809687
          9  |  -1.119573   .1448665    -7.73   0.000     -1.46701   -.7721362
         10  |  -1.116502    .142632    -7.83   0.000     -1.45858   -.7744245
         11  |  -1.109613    .145748    -7.61   0.000    -1.459163   -.7600618
         12  |  -1.269935   .1600339    -7.94   0.000    -1.653748   -.8861216
         13  |  -1.269935   .1600339    -7.94   0.000    -1.653748   -.8861216
         14  |  -1.269935   .1600339    -7.94   0.000    -1.653748   -.8861216
         15  |  -.6032814   .2190793    -2.75   0.030    -1.128704   -.0778584
         16  |  -.1673647   .2927116    -0.57   0.587    -.8693816    .5346523
         17  |  -.1673647   .2927116    -0.57   0.587    -.8693816    .5346523
         18  |  -.1439101    .290608    -0.50   0.637    -.8408819    .5530618
         19  |  -.1439101    .290608    -0.50   0.637    -.8408819    .5530618
         20  |   -.120123   .2866726    -0.42   0.689    -.8076565    .5674105
         21  |  -.1030852   .2820942    -0.37   0.726    -.7796383    .5734679
         22  |  -.1022117   .2822672    -0.36   0.729    -.7791797    .5747563
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2844
                                                Largest FMI       =     0.0847
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.23
                                                        avg       =      22.99
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.8)   =       2.41
Within VCE type:       Robust                   Prob > F          =     0.0243

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
  vdhealtheq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0260372   .0118902    -2.19   0.039    -.0506215   -.0014529
          1  |  -.0268664   .0118731    -2.26   0.033    -.0514153   -.0023175
          3  |  -.0374189    .036014    -1.04   0.310    -.1118815    .0370436
          4  |  -.0829428   .0547251    -1.52   0.143    -.1960925    .0302069
          5  |  -.0987982   .0566075    -1.75   0.094      -.21584    .0182437
          6  |  -.1572275   .0750101    -2.10   0.047    -.3123242   -.0021307
          7  |   -.132656   .0807537    -1.64   0.114    -.2996812    .0343692
          8  |  -.1370939   .0810512    -1.69   0.104    -.3047416    .0305539
          9  |  -.1309116   .0808988    -1.62   0.119    -.2983155    .0364923
         10  |  -.1157414    .079434    -1.46   0.159    -.2803275    .0488447
             |
  revny#year |
       1  0  |   .0319661   .0213547     1.50   0.148    -.0121869    .0761191
       1  1  |   .0329187    .021508     1.53   0.139    -.0115513    .0773887
       1  3  |   .0649084   .0788975     0.82   0.419    -.0982203    .2280371
       1  4  |   .2456832   .1081549     2.27   0.033      .022062    .4693043
       1  5  |    .246141   .1054021     2.34   0.029      .028198    .4640839
       1  6  |   .3186949   .1217701     2.62   0.015     .0668813    .5705085
       1  7  |   .2996513   .1266751     2.37   0.027     .0375748    .5617278
       1  8  |   .2677563   .1326755     2.02   0.055    -.0067604    .5422731
       1  9  |   .2458094    .133162     1.85   0.078    -.0298365    .5214554
       1 10  |   .2338814   .1403731     1.67   0.110    -.0578466    .5256093
             |
       _cons |  -.0226213   .0452675    -0.50   0.622    -.1162165    .0709739
-------------+----------------------------------------------------------------
     sigma_u |  1.2297149
     sigma_e |  .29237881
         rho |   .9464942   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     2.6808
                                                Largest FMI       =     0.1097
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.53
                                                        avg       =      22.85
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |  -.0486585   .0479614    -1.01   0.321    -.1478236    .0505067
          2  |  -.0494877   .0471551    -1.05   0.305    -.1469855    .0480102
          3  |  -.0226213   .0452675    -0.50   0.622    -.1162165    .0709739
          4  |  -.0600402   .0493154    -1.22   0.236    -.1620049    .0419244
          5  |   -.105564   .0503256    -2.10   0.047    -.2096174   -.0015107
          6  |  -.1214194   .0465785    -2.61   0.016    -.2177253   -.0251136
          7  |  -.1798488   .0574585    -3.13   0.005    -.2986576     -.06104
          8  |  -.1552773   .0625439    -2.48   0.021    -.2846701   -.0258844
          9  |  -.1597152   .0628239    -2.54   0.018    -.2896966   -.0297338
         10  |  -.1535329   .0628928    -2.44   0.023    -.2837529   -.0233129
         11  |  -.1383627   .0628833    -2.20   0.039    -.2688501   -.0078752
         12  |  -.0166923    .046617    -0.36   0.724    -.1130777     .079693
         13  |   -.016569   .0465648    -0.36   0.725    -.1128464    .0797083
         14  |  -.0226213   .0452675    -0.50   0.622    -.1162165    .0709739
         15  |   .0048682   .0531731     0.09   0.928    -.1050725    .1148089
         16  |   .1401191   .0721658     1.94   0.064    -.0090909    .2893292
         17  |   .1247215   .0643963     1.94   0.065    -.0084466    .2578896
         18  |   .1388461   .0763487     1.82   0.082    -.0190625    .2967548
         19  |   .1443741   .0802463     1.80   0.085    -.0217783    .3105265
         20  |   .1080412   .0828033     1.30   0.205    -.0634571    .2795394
         21  |   .0922766   .0852541     1.08   0.291    -.0845182    .2690714
         22  |   .0955187   .0920825     1.04   0.312    -.0962453    .2872826
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness check
. clear

. use matcheddiffindifflong.dta, clear

. xtreg vdhealtheq i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.4321                         Obs per group: min =        11
       between = 0.0403                                        avg =      11.0
       overall = 0.0860                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0751                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  vdhealtheq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0576532   .0309694    -1.86   0.100    -.1290687    .0137623
          1  |  -.0431164    .030023    -1.44   0.189    -.1123497    .0261168
          3  |   .0193815   .0423772     0.46   0.660    -.0783404    .1171034
          4  |    .065967   .0537345     1.23   0.254     -.057945    .1898791
          5  |   .1150433   .0478485     2.40   0.043     .0047045    .2253821
          6  |   .1150433   .0478485     2.40   0.043     .0047045    .2253821
          7  |   .1150433   .0478485     2.40   0.043     .0047045    .2253821
          8  |   .1503615   .0724384     2.08   0.072    -.0166817    .3174048
          9  |   .1534324   .0732906     2.09   0.070    -.0155761    .3224409
         10  |    .160322   .0754142     2.13   0.066    -.0135835    .3342274
             |
  revny#year |
       1  0  |   .0576532   .0309694     1.86   0.100    -.0137623    .1290687
       1  1  |   .0431164    .030023     1.44   0.189    -.0261168    .1123497
       1  3  |   .6472717   .3452772     1.87   0.098    -.1489389    1.443482
       1  4  |   1.036603   .4527012     2.29   0.051    -.0073281    2.080534
       1  5  |   .9875266   .4344964     2.27   0.053    -.0144239    1.989477
       1  6  |   1.010981   .4322269     2.34   0.047     .0142642    2.007698
       1  7  |   1.010981   .4322269     2.34   0.047     .0142642    2.007698
       1  8  |     .99945   .4244603     2.35   0.046     .0206428    1.978257
       1  9  |   1.013417   .4171524     2.43   0.041     .0514618    1.975372
       1 10  |   1.007401   .4199082     2.40   0.043     .0390907    1.975711
             |
       _cons |  -1.269935   .1600339    -7.94   0.000    -1.638973   -.9008958
-------------+----------------------------------------------------------------
     sigma_u |  1.0525765
     sigma_e |  .44108353
         rho |  .85062658   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -1.327588    .164152    -8.09   0.000     -1.64932   -1.005856
       0  1  |  -1.313051   .1643329    -7.99   0.000    -1.635138   -.9909643
       0  2  |  -1.269935   .1600339    -7.94   0.000    -1.583595   -.9562739
       0  3  |  -1.250553   .1801896    -6.94   0.000    -1.603718    -.897388
       0  4  |  -1.203968   .1634286    -7.37   0.000    -1.524282   -.8836534
       0  5  |  -1.154891   .1439357    -8.02   0.000       -1.437   -.8727825
       0  6  |  -1.154891   .1439357    -8.02   0.000       -1.437   -.8727825
       0  7  |  -1.154891   .1439357    -8.02   0.000       -1.437   -.8727825
       0  8  |  -1.119573   .1448665    -7.73   0.000    -1.403506   -.8356398
       0  9  |  -1.116502    .142632    -7.83   0.000    -1.396056   -.8369486
       0 10  |  -1.109613    .145748    -7.61   0.000    -1.395273   -.8239518
       1  0  |  -1.269935   .1600339    -7.94   0.000    -1.583595   -.9562739
       1  1  |  -1.269935   .1600339    -7.94   0.000    -1.583595   -.9562739
       1  2  |  -1.269935   .1600339    -7.94   0.000    -1.583595   -.9562739
       1  3  |  -.6032814   .2190793    -2.75   0.006    -1.032669   -.1738939
       1  4  |  -.1673647   .2927116    -0.57   0.567    -.7410688    .4063394
       1  5  |  -.1673647   .2927116    -0.57   0.567    -.7410688    .4063394
       1  6  |  -.1439101    .290608    -0.50   0.620    -.7134912     .425671
       1  7  |  -.1439101    .290608    -0.50   0.620    -.7134912     .425671
       1  8  |   -.120123   .2866726    -0.42   0.675    -.6819909    .4417449
       1  9  |  -.1030852   .2820942    -0.37   0.715    -.6559796    .4498092
       1 10  |  -.1022117   .2822672    -0.36   0.717    -.6554452    .4510218
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg vdhealtheq i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.0552                         Obs per group: min =         5
       between = 0.0018                                        avg =      10.4
       overall = 0.0004                                        max =        11

                                                F(20,25)           =     19.84
corr(u_i, Xb)  = -0.1135                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  vdhealtheq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0260479   .0119063    -2.19   0.038    -.0505694   -.0015264
          1  |  -.0268871   .0118882    -2.26   0.033    -.0513712    -.002403
          3  |  -.0374462   .0360642    -1.04   0.309    -.1117219    .0368295
          4  |   -.083006   .0547993    -1.51   0.142    -.1958673    .0298552
          5  |  -.0988736   .0566829    -1.74   0.093    -.2156143     .017867
          6  |  -.1580932    .075533    -2.09   0.047    -.3136564     -.00253
          7  |  -.1154174   .0835065    -1.38   0.179    -.2874023    .0565676
          8  |  -.1224393   .0837814    -1.46   0.156    -.2949904    .0501118
          9  |  -.1394989   .0842123    -1.66   0.110    -.3129373    .0339395
         10  |  -.1194024   .0831988    -1.44   0.164    -.2907535    .0519487
             |
  revny#year |
       1  0  |   .0319769   .0213759     1.50   0.147    -.0120476    .0760014
       1  1  |   .0329393   .0215286     1.53   0.139    -.0113997    .0772784
       1  3  |   .0649357    .078964     0.82   0.419    -.0976938    .2275652
       1  4  |   .2457464   .1082385     2.27   0.032     .0228251    .4686678
       1  5  |   .2512313   .1086315     2.31   0.029     .0275004    .4749621
       1  6  |   .3266906   .1264243     2.58   0.016     .0663149    .5870662
       1  7  |   .3135173   .1414993     2.22   0.036      .022094    .6049407
       1  8  |   .2788038   .1472629     1.89   0.070    -.0244898    .5820974
       1  9  |   .3126225   .1440305     2.17   0.040      .015986    .6092589
       1 10  |   .3224276   .1477368     2.18   0.039      .018158    .6266972
             |
       _cons |  -.0749628   .0443433    -1.69   0.103    -.1662895    .0163639
-------------+----------------------------------------------------------------
     sigma_u |  1.2321853
     sigma_e |  .29303745
         rho |  .94646956   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -.1010107   .0472084    -2.14   0.032    -.1935375    -.008484
       0  1  |  -.1018499   .0463719    -2.20   0.028     -.192737   -.0109627
       0  2  |  -.0749628   .0443433    -1.69   0.091     -.161874    .0119485
       0  3  |   -.112409   .0480832    -2.34   0.019    -.2066502   -.0181677
       0  4  |  -.1579688   .0494904    -3.19   0.001    -.2549683   -.0609693
       0  5  |  -.1738364   .0456774    -3.81   0.000    -.2633625   -.0843103
       0  6  |   -.233056   .0590691    -3.95   0.000    -.3488292   -.1172828
       0  7  |  -.1903801   .0665092    -2.86   0.004    -.3207358   -.0600245
       0  8  |   -.197402    .066655    -2.96   0.003    -.3280434   -.0667607
       0  9  |  -.2144616   .0666153    -3.22   0.001    -.3450253    -.083898
       0 10  |  -.1943652    .066271    -2.93   0.003    -.3242539   -.0644765
       1  0  |  -.0690338   .0457772    -1.51   0.132    -.1587554    .0206878
       1  1  |  -.0689105   .0457535    -1.51   0.132    -.1585858    .0207648
       1  2  |  -.0749628   .0443433    -1.69   0.091     -.161874    .0119485
       1  3  |  -.0474733   .0531411    -0.89   0.372    -.1516279    .0566813
       1  4  |   .0877776   .0730778     1.20   0.230    -.0554522    .2310074
       1  5  |   .0773949   .0678984     1.14   0.254    -.0556836    .2104733
       1  6  |   .0936346   .0803887     1.16   0.244    -.0639243    .2511935
       1  7  |   .1231372   .0912022     1.35   0.177    -.0556158    .3018902
       1  8  |   .0814018   .0944345     0.86   0.389    -.1036864    .2664899
       1  9  |   .0981608    .093653     1.05   0.295    -.0853957    .2817173
       1 10  |   .1280624    .098395     1.30   0.193    -.0647882    .3209131
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. *==============================================
. * EFFECT OF REVOLUTION ON EDUCATIONAL EQUALITY
. *==============================================
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdeduceq"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
    vdeduceq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0059316   .0433753    -0.14   0.895    -.1099596    .0980965
          1  |  -.0058682   .0060322    -0.97   0.365    -.0203354    .0085989
          3  |   .2750964   .2157818     1.27   0.246    -.2424182    .7926109
          4  |   .3697637   .2271468     1.63   0.151    -.1750077    .9145351
          5  |   .4032096   .2247338     1.79   0.119    -.1357748     .942194
          6  |   .3965739   .2270837     1.75   0.127    -.1480461     .941194
          7  |   .4680201   .2235097     2.09   0.077    -.0680285    1.004069
          8  |   .4793824   .2085493     2.30   0.058    -.0207863    .9795511
          9  |   .4859727   .2079395     2.34   0.055    -.0127335    .9846789
         10  |   .4910349   .2056719     2.39   0.051    -.0022329    .9843027
             |
  revny#year |
       1  0  |   .0059316   .0433753     0.14   0.895    -.0980965    .1099596
       1  1  |   .0058682   .0060322     0.97   0.365    -.0085989    .0203354
       1  3  |   .5425878    .380067     1.43   0.199    -.3689357    1.454111
       1  4  |   .7334093   .4435562     1.65   0.145    -.3303818      1.7972
       1  5  |   .6956086   .4459129     1.56   0.166    -.3738348    1.765052
       1  6  |   .7643506   .4434784     1.72   0.131    -.2992539    1.827955
       1  7  |   .7154837   .4500419     1.59   0.159    -.3638622     1.79483
       1  8  |   .7365028   .4243269     1.74   0.129    -.2811704    1.754176
       1  9  |   .7444524   .4170415     1.79   0.120    -.2557479    1.744653
       1 10  |   .7393902   .4147296     1.78   0.121    -.2552654    1.734046
             |
       _cons |  -1.543187   .1835869    -8.41   0.000    -1.983488   -1.102886
-------------+----------------------------------------------------------------
     sigma_u |  1.0653093
     sigma_e |   .4825019
         rho |  .82978031   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |  -1.549119   .1914659    -8.09   0.000    -2.008316   -1.089921
          2  |  -1.549055   .1819287    -8.51   0.000    -1.985379   -1.112731
          3  |  -1.543187   .1835869    -8.41   0.000    -1.983488   -1.102886
          4  |  -1.268091   .1869778    -6.78   0.000    -1.716524   -.8196575
          5  |  -1.173423   .1904556    -6.16   0.001    -1.630197   -.7166492
          6  |  -1.139977   .1907277    -5.98   0.001    -1.597404   -.6825507
          7  |  -1.146613   .1935855    -5.92   0.001    -1.610894   -.6823324
          8  |  -1.075167   .1990678    -5.40   0.001    -1.552596    -.597738
          9  |  -1.063805   .1757993    -6.05   0.001    -1.485428   -.6421811
         10  |  -1.057214   .1709636    -6.18   0.001     -1.46724   -.6471883
         11  |  -1.052152   .1681152    -6.26   0.001    -1.455347   -.6489574
         12  |  -1.543187   .1835869    -8.41   0.000    -1.983488   -1.102886
         13  |  -1.543187   .1835869    -8.41   0.000    -1.983488   -1.102886
         14  |  -1.543187   .1835869    -8.41   0.000    -1.983488   -1.102886
         15  |  -.7255029   .2528077    -2.87   0.026    -1.331818   -.1191882
         16  |   -.440014   .2796047    -1.57   0.163    -1.110596    .2305685
         17  |  -.4443689   .2805501    -1.58   0.160    -1.117219     .228481
         18  |  -.3822624   .2695136    -1.42   0.202    -1.028643    .2641183
         19  |  -.3596832   .2691672    -1.34   0.226    -1.005233    .2858667
         20  |  -.3273018   .2665409    -1.23   0.262     -.966553    .3119493
         21  |  -.3127619   .2667426    -1.17   0.282    -.9524969    .3269731
         22  |  -.3127619   .2667426    -1.17   0.282    -.9524969    .3269731
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2990
                                                Largest FMI       =     0.1265
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.05
                                                        avg       =      22.84
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.7)   =       2.53
Within VCE type:       Robust                   Prob > F          =     0.0190

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
    vdeduceq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0430942   .0180679    -2.39   0.026    -.0804514    -.005737
          1  |  -.0371928    .013764    -2.70   0.013    -.0656513   -.0087343
          3  |  -.0197733   .0291313    -0.68   0.504    -.0800054    .0404587
          4  |   .0051014   .0164319     0.31   0.759    -.0288732     .039076
          5  |  -.0358774   .0324447    -1.11   0.280    -.1029601    .0312054
          6  |  -.0757907   .0587993    -1.29   0.210    -.1973728    .0457913
          7  |  -.0608915   .0623016    -0.98   0.339    -.1897906    .0680076
          8  |  -.0758553    .070761    -1.07   0.295    -.2222478    .0705372
          9  |  -.0616419   .0684752    -0.90   0.378    -.2034652    .0801814
         10  |  -.0614726   .0695227    -0.88   0.386    -.2056182    .0826731
             |
  revny#year |
       1  0  |    .063373   .0312346     2.03   0.054    -.0012077    .1279537
       1  1  |   .0600718   .0287383     2.09   0.048     .0006525    .1194911
       1  3  |   .0701437   .0708823     0.99   0.333    -.0764127    .2167001
       1  4  |   .1742684   .0861297     2.02   0.055    -.0038134    .3523503
       1  5  |   .1961792   .0853913     2.30   0.031     .0195908    .3727675
       1  6  |   .2087617   .0997667     2.09   0.048     .0024142    .4151093
       1  7  |   .1458829   .1061728     1.37   0.183     -.073869    .3656348
       1  8  |   .1763507   .1052172     1.68   0.107    -.0414863    .3941878
       1  9  |   .1568641   .1040137     1.51   0.146    -.0587728     .372501
       1 10  |   .2014726   .1127975     1.79   0.089    -.0337848    .4367301
             |
       _cons |   .0042013   .0355848     0.12   0.907    -.0693739    .0777765
-------------+----------------------------------------------------------------
     sigma_u |  1.3443202
     sigma_e |  .25639618
         rho |  .96490056   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     3.6115
                                                Largest FMI       =     0.1499
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.36
                                                        avg       =      22.63
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |  -.0388929    .039461    -0.99   0.334    -.1204825    .0426967
          2  |  -.0329915   .0382188    -0.86   0.397    -.1120128    .0460299
          3  |   .0042013   .0355848     0.12   0.907    -.0693739    .0777765
          4  |   -.015572   .0453615    -0.34   0.734    -.1093615    .0782174
          5  |   .0093027   .0350491     0.27   0.793    -.0631649    .0817703
          6  |  -.0316761    .034464    -0.92   0.367    -.1029339    .0395818
          7  |  -.0715894   .0459969    -1.56   0.133    -.1667038    .0235249
          8  |  -.0566902   .0496714    -1.14   0.266    -.1594988    .0461184
          9  |   -.071654   .0577312    -1.24   0.227    -.1911275    .0478195
         10  |  -.0574406   .0552946    -1.04   0.310    -.1720854    .0572042
         11  |  -.0572713   .0554166    -1.03   0.313    -.1723943    .0578518
         12  |   .0244801   .0456133     0.54   0.597      -.06983    .1187903
         13  |   .0270803   .0453931     0.60   0.557    -.0667745    .1209351
         14  |   .0042013   .0355848     0.12   0.907    -.0693739    .0777765
         15  |   .0545716    .049513     1.10   0.282    -.0478015    .1569448
         16  |   .1835711   .0679993     2.70   0.013     .0429756    .3241666
         17  |   .1645031   .0608645     2.70   0.013     .0386124    .2903938
         18  |   .1371723   .0664317     2.06   0.050    -.0002634    .2746081
         19  |   .0891927   .0689551     1.29   0.209    -.0536915    .2320769
         20  |   .1046967   .0647464     1.62   0.120     -.029675    .2390685
         21  |   .0994235   .0675912     1.47   0.156    -.0412223    .2400693
         22  |   .1442014   .0779101     1.85   0.080    -.0186622     .307065
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness check
. clear

. use matcheddiffindifflong.dta, clear

. xtreg vdeduceq i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.4333                         Obs per group: min =        11
       between = 0.0138                                        avg =      11.0
       overall = 0.0679                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0583                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdeduceq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0059316   .0433753    -0.14   0.895    -.1059552    .0940921
          1  |  -.0058682   .0060322    -0.97   0.359    -.0197785     .008042
          3  |   .2750964   .2157818     1.27   0.238    -.2224974    .7726901
          4  |   .3697637   .2271468     1.63   0.142    -.1540377    .8935651
          5  |   .4032096   .2247338     1.79   0.111    -.1150276    .9214467
          6  |   .3965739   .2270837     1.75   0.119    -.1270819    .9202298
          7  |   .4680201   .2235097     2.09   0.070    -.0473942    .9834344
          8  |   .4793824   .2085493     2.30   0.051    -.0015332     .960298
          9  |   .4859727   .2079395     2.34   0.048     .0064633    .9654821
         10  |   .4910349   .2056719     2.39   0.044     .0167546    .9653152
             |
  revny#year |
       1  0  |   .0059316   .0433753     0.14   0.895    -.0940921    .1059552
       1  1  |   .0058682   .0060322     0.97   0.359     -.008042    .0197785
       1  3  |   .5425878    .380067     1.43   0.191    -.3338482    1.419024
       1  4  |   .7334093   .4435562     1.65   0.137    -.2894331    1.756252
       1  5  |   .6956086   .4459129     1.56   0.157    -.3326684    1.723886
       1  6  |   .7643506   .4434784     1.72   0.123    -.2583123    1.787014
       1  7  |   .7154837   .4500419     1.59   0.151    -.3223147    1.753282
       1  8  |   .7365028   .4243269     1.74   0.121    -.2419969    1.715002
       1  9  |   .7444524   .4170415     1.79   0.112     -.217247    1.706152
       1 10  |   .7393902   .4147296     1.78   0.112    -.2169779    1.695758
             |
       _cons |  -1.543187   .1835869    -8.41   0.000    -1.966539   -1.119835
-------------+----------------------------------------------------------------
     sigma_u |  1.0653093
     sigma_e |   .4825019
         rho |  .82978031   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -1.549119   .1914659    -8.09   0.000    -1.924385   -1.173852
       0  1  |  -1.549055   .1819287    -8.51   0.000    -1.905629   -1.192481
       0  2  |  -1.543187   .1835869    -8.41   0.000    -1.903011   -1.183363
       0  3  |  -1.268091   .1869778    -6.78   0.000     -1.63456    -.901621
       0  4  |  -1.173423   .1904556    -6.16   0.000    -1.546709   -.8001372
       0  5  |  -1.139977   .1907277    -5.98   0.000    -1.513797    -.766158
       0  6  |  -1.146613   .1935855    -5.92   0.000    -1.526034   -.7671925
       0  7  |  -1.075167   .1990678    -5.40   0.000    -1.465333   -.6850012
       0  8  |  -1.063805   .1757993    -6.05   0.000    -1.408365   -.7192444
       0  9  |  -1.057214   .1709636    -6.18   0.000    -1.392297   -.7221318
       0 10  |  -1.052152   .1681152    -6.26   0.000    -1.381652   -.7226523
       1  0  |  -1.543187   .1835869    -8.41   0.000    -1.903011   -1.183363
       1  1  |  -1.543187   .1835869    -8.41   0.000    -1.903011   -1.183363
       1  2  |  -1.543187   .1835869    -8.41   0.000    -1.903011   -1.183363
       1  3  |  -.7255029   .2528077    -2.87   0.004    -1.220997   -.2300089
       1  4  |   -.440014   .2796047    -1.57   0.116    -.9880291    .1080012
       1  5  |  -.4443689   .2805501    -1.58   0.113     -.994237    .1054992
       1  6  |  -.3822624   .2695136    -1.42   0.156    -.9104994    .1459745
       1  7  |  -.3596832   .2691672    -1.34   0.181    -.8872412    .1678748
       1  8  |  -.3273018   .2665409    -1.23   0.219    -.8497123    .1951086
       1  9  |  -.3127619   .2667426    -1.17   0.241    -.8355678    .2100439
       1 10  |  -.3127619   .2667426    -1.17   0.241    -.8355678    .2100439
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg vdeduceq i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.0489                         Obs per group: min =         5
       between = 0.0000                                        avg =      10.4
       overall = 0.0000                                        max =        11

                                                F(20,25)           =     17.27
corr(u_i, Xb)  = -0.0535                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdeduceq |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0431126    .018092    -2.38   0.025    -.0803739   -.0058514
          1  |  -.0372067   .0137821    -2.70   0.012    -.0655914    -.008822
          3  |  -.0197886   .0291725    -0.68   0.504    -.0798704    .0402933
          4  |   .0051053   .0164553     0.31   0.759     -.028785    .0389956
          5  |   -.035905   .0324898    -1.11   0.280    -.1028189    .0310089
          6  |  -.0761564   .0593203    -1.28   0.211    -.1983289    .0460161
          7  |  -.0519826   .0628519    -0.83   0.416    -.1814285    .0774633
          8  |  -.0678811   .0715062    -0.95   0.352     -.215151    .0793887
          9  |  -.0861194   .0679659    -1.27   0.217    -.2260977    .0538589
         10  |  -.0745998   .0703606    -1.06   0.299    -.2195102    .0703106
             |
  revny#year |
       1  0  |   .0633915   .0312642     2.03   0.053    -.0009984    .1277813
       1  1  |   .0600857   .0287637     2.09   0.047     .0008458    .1193257
       1  3  |   .0701589   .0709378     0.99   0.332    -.0759402     .216258
       1  4  |   .1742645    .086185     2.02   0.054    -.0032368    .3517658
       1  5  |   .2034072   .0886264     2.30   0.030     .0208777    .3859366
       1  6  |   .2168301   .1044171     2.08   0.048     .0017791    .4318811
       1  7  |   .1747286   .1177827     1.48   0.150    -.0678493    .4173066
       1  8  |   .2091897   .1170005     1.79   0.086    -.0317773    .4501568
       1  9  |   .2343944   .1114803     2.10   0.046     .0047963    .4639924
       1 10  |   .2947301    .115526     2.55   0.017     .0567998    .5326603
             |
       _cons |  -.0555862   .0331483    -1.68   0.106    -.1238563     .012684
-------------+----------------------------------------------------------------
     sigma_u |  1.3531838
     sigma_e |  .25052341
         rho |  .96686043   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |  -.0986988   .0365907    -2.70   0.007    -.1704152   -.0269824
       0  1  |  -.0927929   .0352937    -2.63   0.009    -.1619673   -.0236185
       0  2  |  -.0555862   .0331483    -1.68   0.094    -.1205556    .0093832
       0  3  |  -.0753747   .0417153    -1.81   0.071    -.1571352    .0063857
       0  4  |  -.0504809   .0315265    -1.60   0.109    -.1122716    .0113099
       0  5  |  -.0914912   .0315149    -2.90   0.004    -.1532592   -.0297231
       0  6  |  -.1317426   .0489943    -2.69   0.007    -.2277697   -.0357154
       0  7  |  -.1075688   .0531587    -2.02   0.043     -.211758   -.0033796
       0  8  |  -.1234673   .0618453    -2.00   0.046    -.2446819   -.0022528
       0  9  |  -.1417055   .0569714    -2.49   0.013    -.2533675   -.0300436
       0 10  |   -.130186   .0577173    -2.26   0.024    -.2433099   -.0170621
       1  0  |  -.0353074   .0440063    -0.80   0.422    -.1215582    .0509435
       1  1  |  -.0327071   .0437916    -0.75   0.455    -.1185371    .0531228
       1  2  |  -.0555862   .0331483    -1.68   0.094    -.1205556    .0093832
       1  3  |  -.0052158   .0480996    -0.11   0.914    -.0994894    .0890577
       1  4  |   .1237836   .0691003     1.79   0.073    -.0116506    .2592178
       1  5  |    .111916   .0650843     1.72   0.086    -.0156469    .2394789
       1  6  |   .0850875   .0714137     1.19   0.233    -.0548808    .2250559
       1  7  |   .0671599   .0755425     0.89   0.374    -.0809008    .2152205
       1  8  |   .0857224   .0700852     1.22   0.221    -.0516421    .2230869
       1  9  |   .0926889   .0730333     1.27   0.204    -.0504537    .2358315
       1 10  |   .1645441   .0796579     2.07   0.039     .0084174    .3206707
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. 
. *==========================================
. * EFFECT OF REVOLUTION ON INFANT MORTALITY
. *==========================================
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "e_peinfmor"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        275

Group variable: diffid                          Number of groups  =         25
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1619
                                                Largest FMI       =     0.0740
                                                Complete DF       =          5
                                                DF:     min       =       3.71
                                                        avg       =       3.75
DF adjustment:   Small sample                           max       =       3.75
                                                F(   6,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 6 clusters in revid)
------------------------------------------------------------------------------
  e_peinfmor |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   6.750405   1.862226     3.62   0.025     1.416808      12.084
          1  |   1.484723   1.339781     1.11   0.334    -2.334977    5.304423
          3  |  -.9041655   4.059275    -0.22   0.835    -12.47712    10.66878
          4  |  -6.919443   2.142635    -3.23   0.035    -13.02807   -.8108124
          5  |  -8.190277   3.653145    -2.24   0.093    -18.60535      2.2248
          6  |  -10.58055   4.481134    -2.36   0.082    -23.35622    2.195113
          7  |  -14.07222   4.764305    -2.95   0.045     -27.6552   -.4892371
          8  |  -18.17083   5.047434    -3.60   0.025    -32.56101    -3.78065
          9  |  -20.48194   6.050998    -3.38   0.031    -37.73327   -3.230614
         10  |  -20.51666   8.286082    -2.48   0.073    -44.14019    3.106865
             |
  revny#year |
       1  0  |   .0885794   2.362716     0.04   0.972    -6.666603    6.843762
       1  1  |   1.301437   2.011287     0.65   0.555     -4.43272    7.035594
       1  3  |  -6.473802   5.346535    -1.21   0.297    -21.71672    8.769111
       1  4  |  -2.844682   3.966221    -0.72   0.515    -14.15233    8.462971
       1  5  |  -4.526672   6.110405    -0.74   0.502    -21.94737    12.89403
       1  6  |  -4.972552    7.38537    -0.67   0.540    -26.02816    16.08306
       1  7  |   -4.13371     8.1043    -0.51   0.639    -27.23898    18.97156
       1  8  |  -3.021261   8.324468    -0.36   0.736    -26.75423    20.71171
       1  9  |  -3.512973   9.587441    -0.37   0.734    -30.84667    23.82072
       1 10  |  -6.014408    12.2108    -0.49   0.650    -40.82725    28.79844
             |
       _cons |   129.0985   2.019711    63.92   0.000     123.3403    134.8567
-------------+----------------------------------------------------------------
     sigma_u |  51.041371
     sigma_e |  7.6129008
         rho |  .97823793   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        275
                                                Average RVI       =     0.1611
                                                Largest FMI       =     0.0665
                                                Complete DF       =          5
DF adjustment:   Small sample                   DF:     min       =       3.73
                                                        avg       =       3.75
Within VCE type: Delta-method                           max       =       3.75

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   135.8489   2.985479    45.50   0.000     127.3223    144.3755
          2  |   130.5832   2.829546    46.15   0.000     122.5162    138.6502
          3  |   129.0985   2.019711    63.92   0.000     123.3403    134.8567
          4  |   128.1943   3.783447    33.88   0.000     117.4078    138.9809
          5  |    122.179   1.800878    67.84   0.000     117.0448    127.3133
          6  |   120.9082   3.025314    39.97   0.000     112.2831    129.5334
          7  |   118.5179   3.676409    32.24   0.000     108.0365    128.9993
          8  |   115.0263   3.784019    30.40   0.000     104.2381    125.8145
          9  |   110.9277   3.973755    27.92   0.000     99.59853    122.2568
         10  |   108.6165   4.967111    21.87   0.000     94.45537    122.7777
         11  |   108.5818    7.30665    14.86   0.000     87.75065     129.413
         12  |   135.9375   3.199928    42.48   0.000     126.8145    145.0604
         13  |   131.8847   2.980967    44.24   0.000     123.3859    140.3834
         14  |   129.0985   2.019711    63.92   0.000     123.3403    134.8567
         15  |   121.7205   2.018449    60.30   0.000     115.9659    127.4751
         16  |   119.3344   2.465105    48.41   0.000     112.3064    126.3624
         17  |   116.3815   3.124963    37.24   0.000     107.4723    125.2908
         18  |   113.5454   3.915818    29.00   0.000     102.3814    124.7093
         19  |   110.8926   4.733143    23.43   0.000     97.39842    124.3867
         20  |   107.9064   5.080658    21.24   0.000      93.4215    122.3913
         21  |   105.1036   5.504106    19.10   0.000     89.41143    120.7957
         22  |   102.5674   6.000175    17.09   0.000     85.46098    119.6739
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 6 revolutions and 19 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        880

Group variable: diffid                          Number of groups  =         80
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.6406
                                                Largest FMI       =     0.3550
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      12.97
                                                        avg       =      20.40
                                                        max       =      22.22
Model F test:       Equal FMI                   F(  20,   18.8)   =       4.44
Within VCE type:       Robust                   Prob > F          =     0.0010

                                (Within VCE adjusted for 25 clusters in revid)
------------------------------------------------------------------------------
  e_peinfmor |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   3.336605   .6243609     5.34   0.000      1.98745    4.685761
          1  |     1.7645   .2097105     8.41   0.000     1.329839    2.199161
          3  |  -1.905833   .2215292    -8.60   0.000     -2.36499   -1.446675
          4  |  -3.460666   .4264286    -8.12   0.000    -4.344512    -2.57682
          5  |  -4.891043   .6426663    -7.61   0.000    -6.223477    -3.55861
          6  |  -6.222727   .8348635    -7.45   0.000    -7.953312   -4.492142
          7  |  -7.708345   1.011933    -7.62   0.000    -9.807585   -5.609104
          8  |  -9.066114   1.265619    -7.16   0.000    -11.70772   -6.424504
          9  |  -10.14423   1.495094    -6.79   0.000    -13.26042   -7.028048
         10  |  -11.42079   1.642785    -6.95   0.000    -14.84475   -7.996834
             |
  revny#year |
       1  0  |   .3753948   .7132948     0.53   0.606    -1.143667    1.894456
       1  1  |   .0434999   .2878695     0.15   0.881    -.5531589    .6401588
       1  3  |  -.1421681   .3400936    -0.42   0.680    -.8470704    .5627342
       1  4  |   .0126661   .6491577     0.02   0.985    -1.332825    1.358157
       1  5  |  -.4719202   .8406577    -0.56   0.580    -2.219803    1.275962
       1  6  |  -.6698648   1.049448    -0.64   0.530    -2.853086    1.513356
       1  7  |  -.6109684   1.358109    -0.45   0.658    -3.446574    2.224637
       1  8  |   -.692544   1.539836    -0.45   0.658    -3.903812    2.518724
       1  9  |  -1.089982   1.857551    -0.59   0.564    -4.981991    2.802026
       1 10  |  -1.253786   2.077788    -0.60   0.554    -5.621934    3.114361
             |
       _cons |   59.46158   .5869967   101.30   0.000     58.24493    60.67823
-------------+----------------------------------------------------------------
     sigma_u |  44.361368
     sigma_e |  4.2503269
         rho |  .99090367   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        880
                                                Average RVI       =   136.7897
                                                Largest FMI       =     0.2020
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      17.11
                                                        avg       =      20.45
Within VCE type: Delta-method                           max       =      22.22

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   62.79819   1.015437    61.84   0.000     60.67258     64.9238
          2  |   61.22608   .7699644    79.52   0.000      59.6302    62.82197
          3  |   59.46158   .5869967   101.30   0.000     58.24493    60.67823
          4  |   57.55575   .4703892   122.36   0.000     56.58079    58.53071
          5  |   56.00092   .3884811   144.15   0.000     55.19572    56.80611
          6  |   54.57054   .4160822   131.15   0.000     53.70751    55.43357
          7  |   53.23886   .5086061   104.68   0.000     52.18437    54.29334
          8  |   51.75324   .6573143    78.73   0.000     50.38782    53.11865
          9  |   50.39547   .9079293    55.51   0.000     48.48133    52.30961
         10  |   49.31735   1.103093    44.71   0.000     47.00291    51.63179
         11  |   48.04079   1.236216    38.86   0.000     45.44879     50.6328
         12  |   63.17358   1.073981    58.82   0.000     60.94757    65.39959
         13  |   61.26958   .7984906    76.73   0.000     59.61457    62.92459
         14  |   59.46158   .5869967   101.30   0.000     58.24493    60.67823
         15  |   57.41358   .4120166   139.35   0.000     56.55961    58.26756
         16  |   56.01358   .5023979   111.49   0.000     54.97228    57.05489
         17  |   54.09862   .4820257   112.23   0.000     53.09148    55.10576
         18  |   52.56899    .680284    77.28   0.000      51.1449    53.99309
         19  |   51.14227   .9487855    53.90   0.000     49.15039    53.13415
         20  |   49.70293    1.13911    43.63   0.000     47.31329    52.09256
         21  |   48.22737   1.395576    34.56   0.000     45.30957    51.14516
         22  |   46.78701   1.682844    27.80   0.000     43.23833    50.33568
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 25 revolutions and 55 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.3 percent of observations

. * Complete case sample as robustness check
. clear

. use matcheddiffindifflong.dta, clear

. xtreg e_peinfmor i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       320
Group variable: diffid                          Number of groups   =        31

R-sq:  within  = 0.6631                         Obs per group: min =         7
       between = 0.0000                                        avg =      10.3
       overall = 0.0310                                        max =        11

                                                F(7,7)             =         .
corr(u_i, Xb)  = -0.0093                        Prob > F           =         .

                                  (Std. Err. adjusted for 8 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  e_peinfmor |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   6.747315   1.461176     4.62   0.002     3.292183    10.20245
          1  |      1.995   .9634078     2.07   0.077    -.2830975    4.273097
          3  |  -2.413864   3.006708    -0.80   0.448    -9.523598     4.69587
          4  |  -6.543069   3.102412    -2.11   0.073    -13.87911    .7929697
          5  |  -8.937713   3.725964    -2.40   0.048    -17.74822   -.1272083
          6  |  -11.29664   4.429452    -2.55   0.038    -21.77063   -.8226492
          7  |  -15.13593   4.612926    -3.28   0.013    -26.04376    -4.22809
          8  |  -19.39307   4.911458    -3.95   0.006    -31.00682   -7.779317
          9  |  -22.25378   5.520976    -4.03   0.005    -35.30882   -9.198749
         10  |  -23.41093   6.522871    -3.59   0.009    -38.83506   -7.986788
             |
  revny#year |
       1  0  |   .0916687   2.055264     0.04   0.966    -4.768258    4.951595
       1  1  |   .7911596   1.660682     0.48   0.648    -3.135729    4.718048
       1  3  |  -6.898254    4.56241    -1.51   0.174    -17.68664    3.890132
       1  4  |  -4.174843   5.048442    -0.83   0.436    -16.11251    7.762826
       1  5  |  -4.244818   5.889228    -0.72   0.494    -18.17063    9.680994
       1  6  |  -4.225507    6.85575    -0.62   0.557    -20.43678    11.98577
       1  7  |  -2.613341    7.24943    -0.36   0.729    -19.75552    14.52884
       1  8  |  -.8708193    7.32318    -0.12   0.909    -18.18739    16.44575
       1  9  |  -.4122229   8.130098    -0.05   0.961    -19.63685     18.8124
       1 10  |  -2.511364    9.79587    -0.26   0.805    -25.67492    20.65219
             |
       _cons |    127.984    2.37131    53.97   0.000     122.3767    133.5912
-------------+----------------------------------------------------------------
     sigma_u |  52.684193
     sigma_e |  7.2466331
         rho |  .98143171   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        320
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   134.7313   3.209699    41.98   0.000     128.4404    141.0222
       0  1  |    129.979    2.86054    45.44   0.000     124.3724    135.5855
       0  2  |    127.984    2.37131    53.97   0.000     123.3363    132.6317
       0  3  |   125.5701    2.80944    44.70   0.000     120.0637    131.0765
       0  4  |   121.4409   2.677271    45.36   0.000     116.1936    126.6883
       0  5  |   119.0463   3.127019    38.07   0.000     112.9174    125.1751
       0  6  |   116.6873   3.680033    31.71   0.000     109.4746    123.9001
       0  7  |   112.8481   3.626822    31.11   0.000     105.7396    119.9565
       0  8  |   108.5909   3.721577    29.18   0.000     101.2968    115.8851
       0  9  |   105.7302   4.320856    24.47   0.000     97.26148    114.1989
       0 10  |   104.5731    5.47176    19.11   0.000     93.84861    115.2975
       1  0  |    134.823   3.549888    37.98   0.000     127.8653    141.7806
       1  1  |   130.7701   3.352015    39.01   0.000     124.2003      137.34
       1  2  |    127.984    2.37131    53.97   0.000     123.3363    132.6317
       1  3  |   118.6719   2.624411    45.22   0.000     113.5281    123.8156
       1  4  |   117.2661   2.634004    44.52   0.000     112.1035    122.4286
       1  5  |   114.8015   2.885879    39.78   0.000     109.1452    120.4577
       1  6  |   112.4618   3.358175    33.49   0.000     105.8799    119.0437
       1  7  |   110.2347   3.952251    27.89   0.000     102.4884     117.981
       1  8  |   107.7201   4.265857    25.25   0.000     99.35917     116.081
       1  9  |    105.318   4.671162    22.55   0.000     96.16267    114.4733
       1 10  |   102.0617   5.285169    19.31   0.000     91.70296    112.4204
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 8 revolutions and 23 matched cases

. xtreg e_peinfmor i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       859
Group variable: diffid                          Number of groups   =        83

R-sq:  within  = 0.6356                         Obs per group: min =         5
       between = 0.0186                                        avg =      10.3
       overall = 0.0056                                        max =        11

                                                F(20,25)           =     55.49
corr(u_i, Xb)  = -0.0321                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  e_peinfmor |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   3.073452   .4203254     7.31   0.000     2.207776    3.939128
          1  |   1.637852    .188005     8.71   0.000     1.250648    2.025055
          3  |  -1.783192   .2112319    -8.44   0.000    -2.218232   -1.348152
          4  |   -3.21775   .3959501    -8.13   0.000    -4.033225   -2.402276
          5  |  -4.404131   .5926971    -7.43   0.000    -5.624814   -3.183448
          6  |  -5.636334    .766273    -7.36   0.000    -7.214502   -4.058165
          7  |  -7.154602    .948472    -7.54   0.000    -9.108017   -5.201188
          8  |  -8.387295   1.124064    -7.46   0.000    -10.70235   -6.072241
          9  |  -10.18964   1.290852    -7.89   0.000     -12.8482   -7.531083
         10  |  -11.84927   1.410784    -8.40   0.000    -14.75484   -8.943711
             |
  revny#year |
       1  0  |   .6385481   .5491996     1.16   0.256    -.4925496    1.769646
       1  1  |   .1701485   .2798165     0.61   0.549    -.4061443    .7464413
       1  3  |  -.2648085   .3503246    -0.76   0.457    -.9863155    .4566986
       1  4  |  -.2302494   .6295813    -0.37   0.718    -1.526896    1.066397
       1  5  |  -1.091903   .8873049    -1.23   0.230    -2.919342    .7355355
       1  6  |  -1.405532    1.07283    -1.31   0.202    -3.615068    .8040027
       1  7  |  -1.788942     1.3613    -1.31   0.201    -4.592592    1.014709
       1  8  |   -2.00625    1.58358    -1.27   0.217    -5.267694    1.255194
       1  9  |  -1.734541   1.891718    -0.92   0.368    -5.630608    2.161526
       1 10  |  -2.333506   2.244024    -1.04   0.308     -6.95516    2.288147
             |
       _cons |   58.77011   .5190126   113.23   0.000     57.70118    59.83904
-------------+----------------------------------------------------------------
     sigma_u |  44.401144
     sigma_e |  3.9620504
         rho |  .99210036   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        859
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   61.84356   .8225668    75.18   0.000     60.23136    63.45576
       0  1  |   60.40796   .6721548    89.87   0.000     59.09056    61.72536
       0  2  |   58.77011   .5190126   113.23   0.000     57.75286    59.78736
       0  3  |   56.98692   .4363654   130.59   0.000     56.13166    57.84218
       0  4  |   55.55236   .3933298   141.24   0.000     54.78145    56.32327
       0  5  |   54.36598   .4602481   118.12   0.000     53.46391    55.26805
       0  6  |   53.13378   .5441725    97.64   0.000     52.06722    54.20034
       0  7  |   51.61551   .6684505    77.22   0.000     50.30537    52.92565
       0  8  |   50.38282   .8154212    61.79   0.000     48.78462    51.98101
       0  9  |   48.58047   .9623056    50.48   0.000     46.69438    50.46655
       0 10  |   46.92084   1.081518    43.38   0.000      44.8011    49.04057
       1  0  |   62.48211   1.025918    60.90   0.000     60.47135    64.49287
       1  1  |   60.57811   .7409968    81.75   0.000     59.12578    62.03044
       1  2  |   58.77011   .5190126   113.23   0.000     57.75286    59.78736
       1  3  |   56.72211   .3444066   164.70   0.000     56.04709    57.39713
       1  4  |   55.32211   .4358961   126.92   0.000     54.46777    56.17645
       1  5  |   53.27408   .4803663   110.90   0.000     52.33258    54.21558
       1  6  |   51.72824   .6746175    76.68   0.000     50.40602    53.05047
       1  7  |   49.82657   .9227589    54.00   0.000     48.01799    51.63514
       1  8  |   48.37657   1.167635    41.43   0.000     46.08804    50.66509
       1  9  |   46.84593    1.47876    31.68   0.000     43.94761    49.74424
       1 10  |   44.58733   1.804242    24.71   0.000     41.05108    48.12358
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 57 matched cases

. 
. *===================================================
. * EFFECT OF REVOLUTION ON UNDER-FIVE CHILD MORTALITY
. *===================================================
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "under5mort"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
  under5mort |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   12.59094    3.49128     3.61   0.010     4.217727    20.96416
          1  |   5.262052   1.891184     2.78   0.029     .7263807    9.797723
          3  |  -21.42378   11.08122    -1.93   0.097    -48.00014    5.152582
          4  |  -25.91322   11.31532    -2.29   0.058    -53.05102     1.22458
          5  |  -29.62581   11.83651    -2.50   0.043     -58.0136   -1.238017
          6  |  -33.29394   12.39545    -2.69   0.033    -63.02224   -3.565645
          7  |  -37.85436   12.74877    -2.97   0.023    -68.43004   -7.278675
          8  |  -43.48436   13.12215    -3.31   0.014    -74.95552    -12.0132
          9  |  -47.24158    13.7638    -3.43   0.012    -80.25162   -14.23155
         10  |  -48.71769   14.73958    -3.31   0.014    -84.06797   -13.36741
             |
  revny#year |
       1  0  |  -1.632944   4.924421    -0.33   0.751     -13.4433    10.17741
       1  1  |  -.5316066   2.845272    -0.19   0.857     -7.35549    6.292277
       1  3  |  -5.391107   7.866665    -0.69   0.517    -24.25791     13.4757
       1  4  |   -5.08511   8.205893    -0.62   0.556     -24.7655    14.59528
       1  5  |  -6.004973    8.96069    -0.67   0.526    -27.49561    15.48566
       1  6  |  -6.619501   9.863072    -0.67   0.525    -30.27434    17.03534
       1  7  |  -7.314754   10.62134    -0.69   0.515    -32.78815    18.15864
       1  8  |  -4.420415   10.41769    -0.42   0.685    -29.40542    20.56459
       1  9  |  -3.177196    10.9451    -0.29   0.781    -29.42709    23.07269
       1 10  |  -9.503312   14.02677    -0.68   0.521    -43.14403    24.13741
             |
       _cons |   244.3619   8.212905    29.75   0.000     224.6647    264.0591
-------------+----------------------------------------------------------------
     sigma_u |  103.18434
     sigma_e |  18.861488
         rho |  .96766669   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   256.9528   9.118969    28.18   0.000     235.0826    278.8231
          2  |    249.624   8.622221    28.95   0.000     228.9451    270.3028
          3  |   244.3619   8.212905    29.75   0.000     224.6647    264.0591
          4  |   222.9381    5.06473    44.02   0.000     210.7913     235.085
          5  |   218.4487   4.918237    44.42   0.000     206.6532    230.2442
          6  |   214.7361    5.32837    40.30   0.000     201.9569    227.5152
          7  |    211.068   5.848797    36.09   0.000     197.0407    225.0953
          8  |   206.5075   6.116608    33.76   0.000     191.8379    221.1771
          9  |   200.8775   6.564925    30.60   0.000     185.1327    216.6224
         10  |   197.1203   7.364994    26.76   0.000     179.4567     214.784
         11  |   195.6442   8.526872    22.94   0.000      175.194    216.0944
         12  |   255.3199   8.403073    30.38   0.000     235.1666    275.4732
         13  |   249.0923   8.390618    29.69   0.000     228.9689    269.2158
         14  |   244.3619   8.212905    29.75   0.000     224.6647    264.0591
         15  |    217.547   6.423907    33.87   0.000     202.1404    232.9536
         16  |   213.3636   6.167982    34.59   0.000     198.5708    228.1564
         17  |   208.7311   6.016947    34.69   0.000     194.3005    223.1617
         18  |   204.4485   6.034171    33.88   0.000     189.9766    218.9204
         19  |   199.1928   6.209368    32.08   0.000     184.3007    214.0849
         20  |   196.4571   5.705362    34.43   0.000     182.7738    210.1404
         21  |   193.9431   5.613507    34.55   0.000     180.4801    207.4061
         22  |   186.1409   6.722631    27.69   0.000     170.0179    202.2639
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        858

Group variable: diffid                          Number of groups  =         78
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.3959
                                                Largest FMI       =     0.1654
                                                Complete DF       =         23
DF adjustment:   Small sample                   DF:     min       =      17.39
                                                        avg       =      20.51
                                                        max       =      21.23
Model F test:       Equal FMI                   F(  20,   19.2)   =       4.99
Within VCE type:       Robust                   Prob > F          =     0.0004

                                (Within VCE adjusted for 24 clusters in revid)
------------------------------------------------------------------------------
  under5mort |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   6.017866   .8410143     7.16   0.000     4.270038    7.765694
          1  |   3.126413   .4269417     7.32   0.000     2.239127      4.0137
          3  |  -3.072354   .3992141    -7.70   0.000    -3.902016   -2.242692
          4  |  -5.582434   .7599059    -7.35   0.000    -7.161699   -4.003168
          5  |  -7.928392   1.107406    -7.16   0.000    -10.22984   -5.626938
          6  |  -10.11359   1.421347    -7.12   0.000    -13.06749   -7.159696
          7  |  -12.11246   1.782089    -6.80   0.000    -15.82171     -8.4032
          8  |  -14.41753   2.025634    -7.12   0.000    -18.63728   -10.19778
          9  |  -16.27827   2.426577    -6.71   0.000     -21.3467   -11.20985
         10  |  -18.80604    2.60825    -7.21   0.000    -24.24996   -13.36211
             |
  revny#year |
       1  0  |   .9154665   .8193017     1.12   0.276    -.7872376    2.618171
       1  1  |   .2027536   .4071926     0.50   0.624    -.6434896    1.048997
       1  3  |  -.1943132   .4779217    -0.41   0.688    -1.187549     .798922
       1  4  |   -.492567   .8560681    -0.58   0.571    -2.271681    1.286547
       1  5  |  -.8466086   1.205915    -0.70   0.490    -3.352787     1.65957
       1  6  |  -1.181324   1.514873    -0.78   0.444    -4.329591    1.966944
       1  7  |  -1.511802   2.017482    -0.75   0.463    -5.736914    2.713309
       1  8  |  -1.851457   2.226411    -0.83   0.415    -6.496313      2.7934
       1  9  |  -2.084372   2.707752    -0.77   0.451    -7.774201    3.605456
       1 10  |  -2.637155   3.151365    -0.84   0.414    -9.274584    4.000274
             |
       _cons |   92.14267   1.015959    90.70   0.000     90.03126    94.25407
-------------+----------------------------------------------------------------
     sigma_u |   79.37189
     sigma_e |  7.5787796
         rho |   .9909651   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        858
                                                Average RVI       =   117.4000
                                                Largest FMI       =     0.1600
                                                Complete DF       =         23
DF adjustment:   Small sample                   DF:     min       =      17.53
                                                        avg       =      20.33
Within VCE type: Delta-method                           max       =      21.23

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   98.16053   1.781157    55.11   0.000     94.45887    101.8622
          2  |   95.26908   1.373898    69.34   0.000     92.41379    98.12437
          3  |   92.14267   1.015959    90.70   0.000     90.03126    94.25407
          4  |   89.07031   .7571426   117.64   0.000     87.49679    90.64384
          5  |   86.56023   .6058901   142.86   0.000     85.30105    87.81942
          6  |   84.21428   .6475761   130.05   0.000     82.86846    85.56009
          7  |   82.02908   .8042117   102.00   0.000     80.35773    83.70042
          8  |   80.03021   1.100736    72.71   0.000     77.73233    82.32809
          9  |   77.72514   1.300211    59.78   0.000     75.00489    80.44538
         10  |    75.8644   1.681318    45.12   0.000     72.32534    79.40345
         11  |   73.33663   1.851782    39.60   0.000     69.44939    77.22388
         12  |     99.076   1.928876    51.36   0.000     95.06734    103.0847
         13  |   95.47184   1.442912    66.17   0.000     92.47312    98.47055
         14  |   92.14267   1.015959    90.70   0.000     90.03126    94.25407
         15  |     88.876   .6604308   134.57   0.000     87.50347    90.24853
         16  |   86.06767   .4842589   177.73   0.000     85.06126    87.07407
         17  |   83.36767   .6233816   133.73   0.000     82.07213     84.6632
         18  |   80.84775   .9251737    87.39   0.000     78.92502    82.77048
         19  |   78.51841   1.512476    51.91   0.000     75.34447    81.69235
         20  |   75.87368   1.777439    42.69   0.000     72.16037    79.58699
         21  |   73.78002   2.285362    32.28   0.000     68.99516    78.56489
         22  |   70.69948   2.678394    26.40   0.000     65.08676     76.3122
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 24 revolutions and 54 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 3.2 percent of observations

. * Complete case sample as robustness check
. clear

. use matcheddiffindifflong.dta, clear

. xtreg under5mort i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.6060                         Obs per group: min =        11
       between = 0.0001                                        avg =      11.0
       overall = 0.0343                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0010                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  under5mort |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   12.59094    3.49128     3.61   0.007     4.540039    20.64185
          1  |   5.262052   1.891184     2.78   0.024     .9009734    9.623131
          3  |  -21.42378   11.08122    -1.93   0.089    -46.97713    4.129572
          4  |  -25.91322   11.31532    -2.29   0.051     -52.0064    .1799583
          5  |  -29.62581   11.83651    -2.50   0.037    -56.92086   -2.330756
          6  |  -33.29394   12.39545    -2.69   0.028     -61.8779   -4.709983
          7  |  -37.85436   12.74877    -2.97   0.018    -67.25309   -8.455632
          8  |  -43.48436   13.12215    -3.31   0.011    -73.74409   -13.22463
          9  |  -47.24158    13.7638    -3.43   0.009    -78.98095   -15.50221
         10  |  -48.71769   14.73958    -3.31   0.011    -82.70722   -14.72816
             |
  revny#year |
       1  0  |  -1.632944   4.924421    -0.33   0.749    -12.98868    9.722791
       1  1  |  -.5316066   2.845272    -0.19   0.856    -7.092816    6.029603
       1  3  |  -5.391107   7.866665    -0.69   0.513    -23.53167    12.74945
       1  4  |   -5.08511   8.205893    -0.62   0.553    -24.00793    13.83771
       1  5  |  -6.004973    8.96069    -0.67   0.522    -26.66836    14.65842
       1  6  |  -6.619501   9.863072    -0.67   0.521    -29.36379    16.12478
       1  7  |  -7.314754   10.62134    -0.69   0.510     -31.8076    17.17809
       1  8  |  -4.420415   10.41769    -0.42   0.683    -28.44366    19.60283
       1  9  |  -3.177196    10.9451    -0.29   0.779    -28.41664    22.06225
       1 10  |  -9.503312   14.02677    -0.68   0.517    -41.84909    22.84247
             |
       _cons |   244.3619   8.212905    29.75   0.000     225.4229    263.3009
-------------+----------------------------------------------------------------
     sigma_u |  103.18434
     sigma_e |  18.861488
         rho |  .96766669   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   256.9528   9.118969    28.18   0.000       239.08    274.8257
       0  1  |    249.624   8.622221    28.95   0.000     232.7247    266.5232
       0  2  |   244.3619   8.212905    29.75   0.000     228.2649    260.4589
       0  3  |   222.9381    5.06473    44.02   0.000     213.0114    232.8648
       0  4  |   218.4487   4.918237    44.42   0.000     208.8091    228.0882
       0  5  |   214.7361    5.32837    40.30   0.000     204.2927    225.1795
       0  6  |    211.068   5.848797    36.09   0.000     199.6045    222.5314
       0  7  |   206.5075   6.116608    33.76   0.000     194.5192    218.4959
       0  8  |   200.8775   6.564925    30.60   0.000     188.0105    213.7446
       0  9  |   197.1203   7.364994    26.76   0.000     182.6852    211.5554
       0 10  |   195.6442   8.526872    22.94   0.000     178.9318    212.3566
       1  0  |   255.3199   8.403073    30.38   0.000     238.8502    271.7896
       1  1  |   249.0923   8.390618    29.69   0.000      232.647    265.5377
       1  2  |   244.3619   8.212905    29.75   0.000     228.2649    260.4589
       1  3  |    217.547   6.423907    33.87   0.000     204.9564    230.1376
       1  4  |   213.3636   6.167982    34.59   0.000     201.2745    225.4526
       1  5  |   208.7311   6.016947    34.69   0.000     196.9381    220.5241
       1  6  |   204.4485   6.034171    33.88   0.000     192.6217    216.2752
       1  7  |   199.1928   6.209368    32.08   0.000     187.0227    211.3629
       1  8  |   196.4571   5.705362    34.43   0.000     185.2748    207.6394
       1  9  |   193.9431   5.613507    34.55   0.000     182.9409    204.9454
       1 10  |   186.1409   6.722631    27.69   0.000     172.9648     199.317
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. xtreg under5mort i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       863
Group variable: diffid                          Number of groups   =        82

R-sq:  within  = 0.5878                         Obs per group: min =         7
       between = 0.0185                                        avg =      10.5
       overall = 0.0059                                        max =        11

                                                F(20,25)           =     43.18
corr(u_i, Xb)  = -0.0225                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  under5mort |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   5.553574   .8065764     6.89   0.000     3.892399    7.214749
          1  |   2.886742   .4136948     6.98   0.000     2.034722    3.738762
          3  |  -2.833799   .3954492    -7.17   0.000    -3.648241   -2.019356
          4  |  -5.137352   .7436242    -6.91   0.000    -6.668875    -3.60583
          5  |    -7.2781   1.082076    -6.73   0.000    -9.506678   -5.049522
          6  |  -9.266033   1.387608    -6.68   0.000    -12.12387   -6.408201
          7  |  -11.38954    1.71148    -6.65   0.000     -14.9144   -7.864682
          8  |  -13.50349   1.966206    -6.87   0.000    -17.55297   -9.454016
          9  |  -16.23636   2.254078    -7.20   0.000    -20.87872     -11.594
         10  |  -18.96004   2.474434    -7.66   0.000    -24.05623   -13.86385
             |
  revny#year |
       1  0  |   1.379758   .8779569     1.57   0.129    -.4284277    3.187944
       1  1  |   .4424248    .433455     1.02   0.317    -.4502926    1.335142
       1  3  |  -.4328682   .4957197    -0.87   0.391    -1.453822    .5880856
       1  4  |  -.9376487   .8882988    -1.06   0.301    -2.767134    .8918369
       1  5  |  -1.496901   1.253572    -1.19   0.244    -4.078681     1.08488
       1  6  |  -2.028884   1.580126    -1.28   0.211    -5.283214    1.225447
       1  7  |  -2.698641   2.024731    -1.33   0.195    -6.868652     1.47137
       1  8  |  -3.176733   2.352945    -1.35   0.189    -8.022714    1.669248
       1  9  |  -3.061722   2.810838    -1.09   0.286    -8.850752    2.727308
       1 10  |  -4.263094   3.329754    -1.28   0.212    -11.12085    2.594663
             |
       _cons |   90.39106   .9057841    99.79   0.000     88.52556    92.25656
-------------+----------------------------------------------------------------
     sigma_u |  79.534226
     sigma_e |  7.2289138
         rho |  .99180658   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        863
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   95.94464   1.624596    59.06   0.000     92.76049    99.12878
       0  1  |    93.2778   1.241126    75.16   0.000     90.84524    95.71037
       0  2  |   90.39106   .9057841    99.79   0.000     88.61576    92.16637
       0  3  |   87.55726   .6762947   129.47   0.000     86.23175    88.88278
       0  4  |   85.25371   .5864358   145.38   0.000     84.10432     86.4031
       0  5  |   83.11296   .6816096   121.94   0.000     81.77703    84.44889
       0  6  |   81.12503   .8629492    94.01   0.000     79.43368    82.81638
       0  7  |   79.00152   1.103876    71.57   0.000     76.83796    81.16508
       0  8  |   76.88757   1.321293    58.19   0.000     74.29788    79.47725
       0  9  |    74.1547   1.608803    46.09   0.000      71.0015    77.30789
       0 10  |   71.43102   1.827458    39.09   0.000     67.84927    75.01277
       1  0  |   97.32439   1.798678    54.11   0.000     93.79905    100.8497
       1  1  |   93.72023   1.319531    71.03   0.000       91.134    96.30646
       1  2  |   90.39106   .9057841    99.79   0.000     88.61576    92.16637
       1  3  |   87.12439   .5800744   150.20   0.000     85.98747    88.26132
       1  4  |   84.31606   .4961498   169.94   0.000     83.34362     85.2885
       1  5  |   81.61606   .7108333   114.82   0.000     80.22285    83.00927
       1  6  |   79.09614   1.029064    76.86   0.000     77.07922    81.11307
       1  7  |   76.30288   1.463657    52.13   0.000     73.43417    79.17159
       1  8  |   73.71083   1.840857    40.04   0.000     70.10282    77.31885
       1  9  |   71.09298   2.302456    30.88   0.000     66.58024    75.60571
       1 10  |   67.16793   2.810169    23.90   0.000      61.6601    72.67576
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust) " revolutions and " (e(N_g) - e(N_clust)) " matched cases"
Regression contained 26 revolutions and 56 matched cases

. 
. *====================================================================
. * EFFECT OF REVOLUTION ON INCOME INEQUALITY (GINI INDEX)--FIGURE 9.10
. *====================================================================
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "e_peginiwi"

. quietly: chp9simpmultimp

. * Successful urban civic vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==0, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        484

Group variable: revid                           Number of groups  =         44
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2293
                                                Largest FMI       =     0.0463
                                                Complete DF       =         43
DF adjustment:   Small sample                   DF:     min       =      39.09
                                                        avg       =      40.62
                                                        max       =      41.13
Model F test:       Equal FMI                   F(  20,   39.7)   =       1.13
Within VCE type:       Robust                   Prob > F          =     0.3622

                                (Within VCE adjusted for 44 clusters in revid)
------------------------------------------------------------------------------
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.331057   1.232914     1.08   0.287    -1.160395    3.822509
          1  |  -.4119752   .9711791    -0.42   0.674    -2.373122    1.549172
          3  |   .0179939   .3997475     0.05   0.964    -.7892347    .8252225
          4  |   2.057377   1.965341     1.05   0.301    -1.911328    6.026081
          5  |   .5909923   2.329062     0.25   0.801    -4.112192    5.294176
          6  |   .7424472   1.077766     0.69   0.495    -1.433936    2.918831
          7  |   .7084716   2.143913     0.33   0.743    -3.621799    5.038742
          8  |  -.0689955   2.356269    -0.03   0.977    -4.828791      4.6908
          9  |  -.1505639   2.385794    -0.06   0.950    -4.970719    4.669591
         10  |  -.3979322   2.384016    -0.17   0.868    -5.216495     4.42063
             |
success#year |
       1  0  |  -2.403695   1.400754    -1.72   0.094    -5.233431    .4260406
       1  1  |  -.3824271   1.226431    -0.31   0.757    -2.859804     2.09495
       1  3  |  -.1634051   .6465079    -0.25   0.802    -1.468929    1.142118
       1  4  |  -1.381981   2.286417    -0.60   0.549    -5.999049    3.235088
       1  5  |   1.083288   2.701507     0.40   0.691     -4.37199    6.538566
       1  6  |   .6558502   1.673104     0.39   0.697    -2.722726    4.034426
       1  7  |   .6956248   2.707596     0.26   0.799    -4.774636    6.165886
       1  8  |   1.704694   2.823569     0.60   0.549    -4.003917    7.413305
       1  9  |   1.902209   2.776058     0.69   0.497    -3.711978    7.516397
       1 10  |   2.100329   2.754159     0.76   0.450    -3.470083     7.67074
             |
       _cons |    37.6731   .7699535    48.93   0.000      36.1183    39.22791
-------------+----------------------------------------------------------------
     sigma_u |  7.5599298
     sigma_e |  4.2989306
         rho |  .75565268   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        484
                                                Average RVI       =     1.0256
                                                Largest FMI       =     0.1301
                                                Complete DF       =         43
DF adjustment:   Small sample                   DF:     min       =      34.17
                                                        avg       =      39.84
Within VCE type: Delta-method                           max       =      41.13

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   39.00416   1.013485    38.49   0.000     36.95532      41.053
          2  |   37.26113   1.017159    36.63   0.000     35.20713    39.31512
          3  |    37.6731   .7699535    48.93   0.000      36.1183    39.22791
          4  |    37.6911   .8085962    46.61   0.000     36.05826    39.32393
          5  |   39.73048    1.51798    26.17   0.000     36.66515    42.79581
          6  |   38.26409   1.833678    20.87   0.000     34.56126    41.96692
          7  |   38.41555   .8071651    47.59   0.000      36.7856     40.0455
          8  |   38.38157   1.660774    23.11   0.000     35.02661    41.73653
          9  |   37.60411   1.859163    20.23   0.000     33.84762     41.3606
         10  |   37.52254   1.892776    19.82   0.000     33.69719    41.34789
         11  |   37.27517   1.891542    19.71   0.000     33.44951    41.10083
         12  |   36.60046   .9859298    37.12   0.000     34.60866    38.59227
         13  |    36.8787    .969004    38.06   0.000     34.92092    38.83648
         14  |    37.6731   .7699535    48.93   0.000      36.1183    39.22791
         15  |   37.52769   .6914688    54.27   0.000     36.13138    38.92401
         16  |    38.3485   .9543126    40.18   0.000     36.42141    40.27559
         17  |   39.34738   1.098511    35.82   0.000     37.12911    41.56566
         18  |    39.0714    1.02536    38.11   0.000     37.00084    41.14196
         19  |    39.0772   1.358544    28.76   0.000     36.32686    41.82754
         20  |    39.3088    1.24227    31.64   0.000     36.78855    41.82905
         21  |   39.42475   1.142878    34.50   0.000     37.10257    41.74692
         22  |    39.3755   1.116844    35.26   0.000     37.10945    41.64155
------------------------------------------------------------------------------

. * Results loaded into MS Excel and graphed
. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==0

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         18       40.91       40.91
          1 |         26       59.09      100.00
------------+-----------------------------------
      Total |         44      100.00

. * Successful social vs. failed social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        253

Group variable: revid                           Number of groups  =         23
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2528
                                                Largest FMI       =     0.5811
                                                Complete DF       =         22
                                                DF:     min       =       7.46
                                                        avg       =      19.32
DF adjustment:   Small sample                           max       =      20.24
                                                F(  17,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 23 clusters in revid)
------------------------------------------------------------------------------
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.835869   .9383065     1.96   0.064    -.1199173    3.791655
          1  |   .2146789   .8810462     0.24   0.810    -1.621755    2.051113
          3  |   1.350234   1.240978     1.09   0.289    -1.236433    3.936902
          4  |   .4461477   1.445317     0.31   0.761    -2.566441    3.458736
          5  |   .8197397   1.478382     0.55   0.585    -2.261768    3.901247
          6  |   1.669934   1.444058     1.16   0.261    -1.340031    4.679899
          7  |   .9020892   1.504749     0.60   0.555    -2.234379    4.038557
          8  |   1.127479   1.607988     0.70   0.491    -2.224178    4.479137
          9  |   1.013065   1.718555     0.59   0.562    -2.569055    4.595185
         10  |   1.324926   1.799596     0.74   0.470    -2.426114    5.075965
             |
success#year |
       1  0  |  -.8660429   1.910504    -0.45   0.657    -4.969255    3.237169
       1  1  |  -.3123384   1.922964    -0.16   0.875    -4.803673    4.178996
       1  3  |  -1.513242   2.088932    -0.72   0.477    -5.867367    2.840883
       1  4  |  -1.092959   2.317777    -0.47   0.642    -5.924084    3.738165
       1  5  |  -1.627023   2.666072    -0.61   0.548    -7.184126    3.930081
       1  6  |  -4.017688   2.235947    -1.80   0.087    -8.678249    .6428733
       1  7  |  -2.782889    2.72629    -1.02   0.319    -8.465511    2.899732
       1  8  |  -3.407993   2.728145    -1.25   0.226     -9.09448    2.278495
       1  9  |   -3.49734   2.884625    -1.21   0.239    -9.509993    2.515312
       1 10  |  -3.375819   2.997477    -1.13   0.273    -9.623697    2.872059
             |
       _cons |   45.06075   .8787468    51.28   0.000     43.22911    46.89239
-------------+----------------------------------------------------------------
     sigma_u |  6.6224442
     sigma_e |  3.4415105
         rho |  .78736387   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        253
                                                Average RVI       =     1.5261
                                                Largest FMI       =     0.5510
                                                Complete DF       =         22
DF adjustment:   Small sample                   DF:     min       =       8.00
                                                        avg       =      19.43
Within VCE type: Delta-method                           max       =      20.24

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   46.89662   .9805849    47.83   0.000     44.85271    48.94053
          2  |   45.27543   .9772178    46.33   0.000     43.23854    47.31232
          3  |   45.06075   .8787468    51.28   0.000     43.22911    46.89239
          4  |   46.41099   .6716507    69.10   0.000     45.01101    47.81096
          5  |    45.5069   .9129586    49.85   0.000     43.60395    47.40985
          6  |   45.88049   .8493385    54.02   0.000     44.11015    47.65083
          7  |   46.73069   .8441252    55.36   0.000     44.97121    48.49016
          8  |   45.96284   1.051621    43.71   0.000     43.77086    48.15482
          9  |   46.18823   .9095003    50.78   0.000     44.29249    48.08397
         10  |   46.07382    1.06931    43.09   0.000     43.84497    48.30266
         11  |   46.38568   1.160912    39.96   0.000      43.9659    48.80546
         12  |   46.03058   2.058316    22.36   0.000     41.63658    50.42457
         13  |   44.96309    1.97738    22.74   0.000     40.40278    49.52341
         14  |   45.06075   .8787468    51.28   0.000     43.22911    46.89239
         15  |   44.89774   1.563944    28.71   0.000     41.63789     48.1576
         16  |   44.41394   1.671914    26.56   0.000     40.92904    47.89884
         17  |   44.25347   2.037904    21.72   0.000      40.0057    48.50123
         18  |     42.713   1.589911    26.87   0.000     39.39902    46.02698
         19  |   43.17995   2.084191    20.72   0.000     38.83571     47.5242
         20  |   42.78024   2.021192    21.17   0.000     38.56731    46.99317
         21  |   42.57648   2.125272    20.03   0.000      38.1466    47.00635
         22  |   43.00986   2.220921    19.37   0.000     38.38062     47.6391
------------------------------------------------------------------------------

. * Results loaded into MS Excel and graphed
. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==1

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         17       73.91       73.91
          1 |          6       26.09      100.00
------------+-----------------------------------
      Total |         23      100.00

. * Urban civic, excluding cases of postcommunist transitions
. mi estimate, post dots saving(miest, replace): xtreg e_peginiwi i.success##ib(2).year if leftist==0 & incgovcomm
> unist==0, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        451

Group variable: revid                           Number of groups  =         41
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2412
                                                Largest FMI       =     0.0338
                                                Complete DF       =         40
DF adjustment:   Small sample                   DF:     min       =      36.86
                                                        avg       =      37.74
                                                        max       =      38.14
Model F test:       Equal FMI                   F(  20,   36.7)   =       1.42
Within VCE type:       Robust                   Prob > F          =     0.1731

                                (Within VCE adjusted for 41 clusters in revid)
------------------------------------------------------------------------------
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |    1.77406   1.220379     1.45   0.154    -.6983618    4.246482
          1  |   -.118562   .9822444    -0.12   0.905    -2.106773    1.869649
          3  |   .2308171   .3585847     0.64   0.524    -.4950125    .9566467
          4  |   2.190164   2.081223     1.05   0.299    -2.022547    6.402874
          5  |   .5904624   2.472085     0.24   0.812    -4.413412    5.594337
          6  |     .70965   1.143416     0.62   0.539    -1.604796    3.024096
          7  |   .6383818   2.274278     0.28   0.780    -3.966205    5.242968
          8  |   -.155407   2.499161    -0.06   0.951    -5.215994     4.90518
          9  |  -.2800089   2.528392    -0.11   0.912    -5.400604    4.840586
         10  |  -.3619282   2.529865    -0.14   0.887    -5.487762    4.763906
             |
success#year |
       1  0  |  -2.977752   1.414628    -2.10   0.042    -5.842541   -.1129628
       1  1  |  -.7087071   1.274051    -0.56   0.581    -3.288544    1.871129
       1  3  |  -.3758458   .6572166    -0.57   0.571    -1.706151    .9544598
       1  4  |  -1.639735   2.432512    -0.67   0.504    -6.563506    3.284037
       1  5  |    .764591   2.867642     0.27   0.791    -5.039949    6.569131
       1  6  |   .4260055   1.780608     0.24   0.812    -3.178214    4.030225
       1  7  |   .3156592   2.870135     0.11   0.913     -5.49697    6.128288
       1  8  |   1.075623   2.914563     0.37   0.714    -4.828155    6.979401
       1  9  |   1.662011   2.920139     0.57   0.573    -4.255081    7.579103
       1 10  |   1.452779   2.854675     0.51   0.614    -4.332105    7.237664
             |
       _cons |   38.68577   .8148436    47.48   0.000      37.0364    40.33513
-------------+----------------------------------------------------------------
     sigma_u |  7.0053499
     sigma_e |  4.3325608
         rho |  .72332812   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        451
                                                Average RVI       =     0.9503
                                                Largest FMI       =     0.0850
                                                Complete DF       =         40
DF adjustment:   Small sample                   DF:     min       =      34.34
                                                        avg       =      37.30
Within VCE type: Delta-method                           max       =      38.14

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   40.45983    .971504    41.65   0.000     38.49042    42.42923
          2  |   38.56721   1.037454    37.17   0.000     36.46724    40.66717
          3  |   38.68577   .8148436    47.48   0.000      37.0364    40.33513
          4  |   38.91659   .8332438    46.70   0.000     37.22997     40.6032
          5  |   40.87593   1.596329    25.61   0.000     37.64472    44.10714
          6  |   39.27623   1.934822    20.30   0.000     35.35986     43.1926
          7  |   39.39542   .8424876    46.76   0.000      37.6901    41.10074
          8  |   39.32415    1.74805    22.50   0.000     35.78436    42.86394
          9  |   38.53036   1.958117    19.68   0.000     34.56432    42.49641
         10  |   38.40576   1.990572    19.29   0.000     34.37289    42.43863
         11  |   38.32384   1.996376    19.20   0.000     34.27606    42.37162
         12  |   37.48208   1.061745    35.30   0.000     35.33192    39.63223
         13  |    37.8585    1.03459    36.59   0.000     35.76311    39.95389
         14  |   38.68577   .8148436    47.48   0.000      37.0364    40.33513
         15  |   38.54074   .7257054    53.11   0.000      37.0718    40.00968
         16  |    39.2362   1.033321    37.97   0.000      37.1446    41.32779
         17  |   40.04082   1.180258    33.93   0.000      37.6518    42.42984
         18  |   39.82142    1.10609    36.00   0.000     37.58253    42.06032
         19  |   39.63981    1.44378    27.46   0.000     36.71081    42.56881
         20  |   39.60598   1.193264    33.19   0.000     37.18556     42.0264
         21  |   40.06777   1.180636    33.94   0.000     37.67153    42.46401
         22  |   39.77662   1.094737    36.33   0.000     37.55266    42.00058
------------------------------------------------------------------------------

. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==0 & incgovcommunist==0

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==0 & incgovcommunist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         17       41.46       41.46
          1 |         24       58.54      100.00
------------+-----------------------------------
      Total |         41      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.5 percent of observations

. * Complete case sample as robustness check
. clear

. use simplediffindifflong.dta, clear

. xtreg e_peginiwi i.success##ib(2).year if leftist==0, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        466
Group variable: revid                           Number of groups  =         47

R-sq:                                           Obs per group:
     within  = 0.0490                                         min =          3
     between = 0.1053                                         avg =        9.9
     overall = 0.0356                                         max =         11

                                                F(20,46)          =       2.35
corr(u_i, Xb)  = 0.0915                         Prob > F          =     0.0084

                                 (Std. Err. adjusted for 47 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.233535   1.217478     1.01   0.316     -1.21712     3.68419
          1  |  -.4119752   .9712715    -0.42   0.673    -2.367043    1.543093
          3  |   .0179939   .3997855     0.05   0.964    -.7867325    .8227204
          4  |   2.057377   1.965528     1.05   0.301    -1.899026     6.01378
          5  |   .5909923   2.329284     0.25   0.801    -4.097613    5.279598
          6  |   .7424472   1.077869     0.69   0.494     -1.42719    2.912085
          7  |   .7461454   2.201563     0.34   0.736     -3.68537    5.177661
          8  |   .0677697    2.51382     0.03   0.979    -4.992288    5.127827
          9  |  -.3297092   2.532931    -0.13   0.897    -5.428235    4.768817
         10  |   -.721341   2.652586    -0.27   0.787    -6.060721    4.618039
             |
success#year |
       1  0  |  -1.778751   1.479639    -1.20   0.235     -4.75711    1.199609
       1  1  |  -.5432773   1.238554    -0.44   0.663    -3.036357    1.949803
       1  3  |  -.1634051   .6465694    -0.25   0.802    -1.464882    1.138072
       1  4  |  -1.381981   2.286635    -0.60   0.549    -5.984738    3.220776
       1  5  |   1.083288   2.701764     0.40   0.690     -4.35508    6.521656
       1  6  |   .7829774   1.677656     0.47   0.643    -2.593968    4.159923
       1  7  |   .7845903   2.784269     0.28   0.779    -4.819853    6.389033
       1  8  |   1.466932   2.961107     0.50   0.623    -4.493468    7.427332
       1  9  |   2.240055   2.903615     0.77   0.444    -3.604619    8.084728
       1 10  |   2.673788   2.989662     0.89   0.376    -3.344089    8.691666
             |
       _cons |   37.91106   .7943694    47.72   0.000     36.31207    39.51004
-------------+----------------------------------------------------------------
     sigma_u |  7.9759074
     sigma_e |  4.2772956
         rho |  .77664293   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        466
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   39.14459   1.019968    38.38   0.000     37.14549    41.14369
       0  1  |   37.49908   1.030586    36.39   0.000     35.47917    39.51899
       0  2  |   37.91106   .7943694    47.72   0.000     36.35412    39.46799
       0  3  |   37.92905   .8312337    45.63   0.000     36.29986    39.55824
       0  4  |   39.96843   1.512529    26.42   0.000     37.00393    42.93294
       0  5  |   38.50205   1.825476    21.09   0.000     34.92418    42.07992
       0  6  |    38.6535   .8136553    47.51   0.000     37.05877    40.24824
       0  7  |    38.6572    1.70529    22.67   0.000      35.3149    41.99951
       0  8  |   37.97883   2.000046    18.99   0.000     34.05881    41.89885
       0  9  |   37.58135    2.01952    18.61   0.000     33.62316    41.53953
       0 10  |   37.18972   2.130012    17.46   0.000     33.01497    41.36446
       1  0  |   37.36584   .9819331    38.05   0.000     35.44129    39.29039
       1  1  |    36.9558   1.012104    36.51   0.000     34.97212    38.93949
       1  2  |   37.91106   .7943694    47.72   0.000     36.35412    39.46799
       1  3  |   37.76565   .7061918    53.48   0.000     36.38154    39.14976
       1  4  |   38.58645   .9546232    40.42   0.000     36.71543    40.45748
       1  5  |   39.58534   1.089772    36.32   0.000     37.44942    41.72125
       1  6  |   39.43648    1.01895    38.70   0.000     37.43938    41.43359
       1  7  |   39.44179   1.365806    28.88   0.000     36.76486    42.11872
       1  8  |   39.44576   1.240766    31.79   0.000      37.0139    41.87762
       1  9  |    39.8214   1.136236    35.05   0.000     37.59442    42.04838
       1 10  |    39.8635   1.138661    35.01   0.000     37.63177    42.09524
------------------------------------------------------------------------------

. tab success if e(N) & year==2 & leftist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         21       42.00       42.00
          1 |         29       58.00      100.00
------------+-----------------------------------
      Total |         50      100.00

. xtreg e_peginiwi i.success##ib(2).year if leftist==1, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        284
Group variable: revid                           Number of groups  =         29

R-sq:                                           Obs per group:
     within  = 0.0687                                         min =          4
     between = 0.0281                                         avg =        9.8
     overall = 0.0003                                         max =         11

                                                F(16,28)          =          .
corr(u_i, Xb)  = -0.1927                        Prob > F          =          .

                                 (Std. Err. adjusted for 29 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.835869   .9295467     1.98   0.058    -.0682211    3.739959
          1  |   .2146789    .872821     0.25   0.808    -1.573214    2.002572
          3  |   1.289256   1.238874     1.04   0.307    -1.248463    3.826974
          4  |   .4990495   1.411785     0.35   0.726    -2.392861     3.39096
          5  |   1.411639   1.514536     0.93   0.359    -1.690748    4.514026
          6  |    1.47842   1.411212     1.05   0.304    -1.412316    4.369156
          7  |   .7204604   1.469123     0.49   0.628    -2.288902    3.729822
          8  |   .9601448   1.561999     0.61   0.544    -2.239466    4.159755
          9  |   .9872534   1.648909     0.60   0.554    -2.390384    4.364891
         10  |   1.307392   1.693812     0.77   0.447    -2.162223    4.777008
             |
success#year |
       1  0  |   .5763868   2.732221     0.21   0.834    -5.020314    6.173087
       1  1  |   1.038252   1.876342     0.55   0.584    -2.805261    4.881765
       1  3  |  -1.452263   2.075077    -0.70   0.490    -5.702866    2.798339
       1  4  |  -1.145861   2.283696    -0.50   0.620    -5.823801    3.532078
       1  5  |  -2.218922   2.669207    -0.83   0.413    -7.686545    3.248702
       1  6  |  -3.826173   2.202616    -1.74   0.093    -8.338027    .6856802
       1  7  |   -2.22141   2.711635    -0.82   0.420    -7.775942    3.333122
       1  8  |  -3.063446   2.696253    -1.14   0.266     -8.58647    2.459578
       1  9  |  -3.567805   2.821245    -1.26   0.216    -9.346864    2.211254
       1 10  |  -3.819071   2.928337    -1.30   0.203    -9.817498    2.179356
             |
       _cons |   45.00817   .9447736    47.64   0.000     43.07289    46.94345
-------------+----------------------------------------------------------------
     sigma_u |  7.1041567
     sigma_e |  3.2243749
         rho |   .8291878   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        284
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   46.84403    1.02219    45.83   0.000     44.84058    48.84749
       0  1  |   45.22284   1.026141    44.07   0.000     43.21165    47.23404
       0  2  |   45.00817   .9447736    47.64   0.000     43.15644    46.85989
       0  3  |   46.29742   .6366657    72.72   0.000     45.04958    47.54526
       0  4  |   45.50722   .8408595    54.12   0.000     43.85916    47.15527
       0  5  |   46.41981   .8905031    52.13   0.000     44.67445    48.16516
       0  6  |   46.48659   .7576744    61.35   0.000     45.00157     47.9716
       0  7  |   45.72863   .9368377    48.81   0.000     43.89246    47.56479
       0  8  |   45.96831   .8235085    55.82   0.000     44.35426    47.58236
       0  9  |   45.99542   .9565115    48.09   0.000     44.12069    47.87015
       0 10  |   46.31556   .9965397    46.48   0.000     44.36238    48.26874
       1  0  |   47.42042   2.719916    17.43   0.000     42.08948    52.75136
       1  1  |    46.2611   1.759504    26.29   0.000     42.81253    49.70966
       1  2  |   45.00817   .9447736    47.64   0.000     43.15644    46.85989
       1  3  |   44.84516   1.553732    28.86   0.000      41.7999    47.89042
       1  4  |   44.36135   1.660582    26.71   0.000     41.10667    47.61603
       1  5  |   44.20088   2.014994    21.94   0.000     40.25157     48.1502
       1  6  |   42.66041   1.600025    26.66   0.000     39.52442     45.7964
       1  7  |   43.50722   2.096111    20.76   0.000     39.39892    47.61552
       1  8  |   42.90486   2.022212    21.22   0.000      38.9414    46.86833
       1  9  |   42.42761   2.105015    20.16   0.000     38.30186    46.55337
       1 10  |   42.49649   2.227562    19.08   0.000     38.13054    46.86243
------------------------------------------------------------------------------

. tab success if e(N) & year==2 & leftist==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         40       74.07       74.07
          1 |         14       25.93      100.00
------------+-----------------------------------
      Total |         54      100.00

. * Urban civic, excluding cases of postcommunist transitions
. xtreg e_peginiwi i.success##ib(2).year if leftist==0 & incgovcommunist==0, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        431
Group variable: revid                           Number of groups  =         42

R-sq:                                           Obs per group:
     within  = 0.0405                                         min =          5
     between = 0.2328                                         avg =       10.3
     overall = 0.0252                                         max =         11

                                                F(20,41)          =       2.98
corr(u_i, Xb)  = 0.0664                         Prob > F          =     0.0015

                                 (Std. Err. adjusted for 42 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  e_peginiwi |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.696598   1.193042     1.42   0.163    -.7127982    4.105994
          1  |   -.118562   .9830161    -0.12   0.905    -2.103803    1.866679
          3  |   .2308171   .3588664     0.64   0.524    -.4939284    .9555626
          4  |   2.190164   2.082858     1.05   0.299    -2.016254    6.396581
          5  |   .5904624   2.474028     0.24   0.813    -4.405938    5.586862
          6  |     .70965   1.144314     0.62   0.539    -1.601339    3.020639
          7  |    .664487    2.34193     0.28   0.778    -4.065137    5.394111
          8  |  -.1864148   2.672957    -0.07   0.945    -5.584561    5.211731
          9  |  -.4502243   2.694652    -0.17   0.868    -5.892185    4.991736
         10  |  -.6254541   2.849688    -0.22   0.827    -6.380516    5.129608
             |
success#year |
       1  0  |  -2.310912   1.506367    -1.53   0.133    -5.353081    .7312568
       1  1  |  -.8720044   1.288333    -0.68   0.502    -3.473846    1.729837
       1  3  |  -.3758458   .6577329    -0.57   0.571    -1.704164    .9524728
       1  4  |  -1.639735   2.434423    -0.67   0.504    -6.556152    3.276683
       1  5  |    .764591   2.869895     0.27   0.791    -5.031279    6.560461
       1  6  |   .5558825   1.784433     0.31   0.757    -3.047853    4.159618
       1  7  |    .518134   2.938111     0.18   0.861    -5.415501    6.451769
       1  8  |   1.062835   3.077679     0.35   0.732    -5.152663    7.278334
       1  9  |   2.024771   3.073724     0.66   0.514    -4.182741    8.232284
       1 10  |   1.939236   3.135482     0.62   0.540    -4.392998     8.27147
             |
       _cons |   38.94861   .8315003    46.84   0.000     37.26936    40.62786
-------------+----------------------------------------------------------------
     sigma_u |  7.3592212
     sigma_e |  4.3278804
         rho |  .74302529   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        431
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   40.64521   .9724625    41.80   0.000     38.73922     42.5512
       0  1  |   38.83005    1.05052    36.96   0.000     36.77107    40.88903
       0  2  |   38.94861   .8315003    46.84   0.000      37.3189    40.57832
       0  3  |   39.17943   .8491354    46.14   0.000     37.51515     40.8437
       0  4  |   41.13877    1.60309    25.66   0.000     37.99678    44.28077
       0  5  |   39.53907    1.94123    20.37   0.000     35.73433    43.34381
       0  6  |   39.65826   .8568465    46.28   0.000     37.97887    41.33765
       0  7  |    39.6131   1.814603    21.83   0.000     36.05654    43.16965
       0  8  |   38.76219   2.126276    18.23   0.000     34.59477    42.92962
       0  9  |   38.49839   2.147854    17.92   0.000     34.28867     42.7081
       0 10  |   38.32316   2.296229    16.69   0.000     33.82263    42.82368
       1  0  |    38.3343   1.051368    36.46   0.000     36.27365    40.39494
       1  1  |   37.95804   1.075064    35.31   0.000     35.85096    40.06513
       1  2  |   38.94861   .8315003    46.84   0.000      37.3189    40.57832
       1  3  |   38.80358   .7280473    53.30   0.000     37.37663    40.23053
       1  4  |   39.49904   1.025186    38.53   0.000     37.48971    41.50837
       1  5  |   40.30366   1.162886    34.66   0.000     38.02445    42.58288
       1  6  |   40.21414   1.088922    36.93   0.000      38.0799    42.34839
       1  7  |   40.13123   1.423864    28.18   0.000     37.34051    42.92195
       1  8  |   39.82503   1.201237    33.15   0.000     37.47065    42.17941
       1  9  |   40.52316   1.190578    34.04   0.000     38.18967    42.85665
       1 10  |   40.26239   1.091066    36.90   0.000     38.12394    42.40084
------------------------------------------------------------------------------

. tab success if e(N) & year==2 & leftist==0 & incgovcommunist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         19       43.18       43.18
          1 |         25       56.82      100.00
------------+-----------------------------------
      Total |         44      100.00

. 
. *==========================================================
. * EFFECT OF REVOLUTION ON STATE/PRIVATE PROPERTY OWNERSHIP
. *==========================================================
. *  Effect of revolution on state/private property ownership
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "vdstown_ord"

. quietly: chp9simpmultimp

. * Successful urban civic vs. failed urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==0, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        550

Group variable: revid                           Number of groups  =         50
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2073
                                                Largest FMI       =     0.0358
                                                Complete DF       =         49
                                                DF:     min       =      45.32
                                                        avg       =      46.69
DF adjustment:   Small sample                           max       =      47.12
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 50 clusters in revid)
------------------------------------------------------------------------------
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.75e-15   6.80e-09     0.00   1.000    -1.37e-08    1.37e-08
          1  |   1.70e-15   5.66e-09     0.00   1.000    -1.14e-08    1.14e-08
          3  |    .047619   .0478224     1.00   0.324     -.048581    .1438191
          4  |   .1428571   .1047736     1.36   0.179    -.0679066    .3536209
          5  |   .1904762   .1642753     1.16   0.252    -.1399818    .5209342
          6  |   .2380952   .1821023     1.31   0.197    -.1282236    .6044141
          7  |   .1923408   .1787067     1.08   0.287    -.1672094     .551891
          8  |      .2385    .171566     1.39   0.171    -.1068309    .5838308
          9  |    .302771   .1741626     1.74   0.089    -.0478465    .6533885
         10  |   .3110408   .1730556     1.80   0.079    -.0374429    .6595244
             |
success#year |
       1  0  |  -.0344828    .034868    -0.99   0.328    -.1046236    .0356581
       1  1  |  -.0344828    .034868    -0.99   0.328    -.1046236    .0356581
       1  3  |    .228243   .1401972     1.63   0.110    -.0537791    .5102652
       1  4  |   .3054187   .1805575     1.69   0.097    -.0577926    .6686301
       1  5  |   .3038732   .2283705     1.33   0.190    -.1555662    .7633126
       1  6  |   .3031675   .2583214     1.17   0.246     -.216514    .8228491
       1  7  |   .3767163   .2498637     1.51   0.138     -.126137    .8795697
       1  8  |   .3270946   .2532402     1.29   0.203    -.1824663    .8366555
       1  9  |   .3013696   .2572191     1.17   0.247    -.2164881    .8192273
       1 10  |   .2967646   .2665244     1.11   0.271    -.2398337    .8333629
             |
       _cons |        2.1     .08047    26.10   0.000     1.938126    2.261874
-------------+----------------------------------------------------------------
     sigma_u |  .65052501
     sigma_e |  .46063742
         rho |   .6660419   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        550
                                                Average RVI       =     0.7910
                                                Largest FMI       =     0.0657
                                                Complete DF       =         49
DF adjustment:   Small sample                   DF:     min       =      43.43
                                                        avg       =      46.26
Within VCE type: Delta-method                           max       =      47.12

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |        2.1     .08047    26.10   0.000     1.938126    2.261874
          2  |        2.1     .08047    26.10   0.000     1.938126    2.261874
          3  |        2.1     .08047    26.10   0.000     1.938126    2.261874
          4  |   2.147619   .0722262    29.73   0.000     2.002328     2.29291
          5  |   2.242857     .10058    22.30   0.000     2.040529    2.445185
          6  |   2.290476   .1446688    15.83   0.000     1.999459    2.581493
          7  |   2.338095   .1572172    14.87   0.000     2.021835    2.654355
          8  |   2.292341   .1540712    14.88   0.000     1.982337    2.602345
          9  |     2.3385   .1482343    15.78   0.000     2.040062    2.636938
         10  |   2.402771   .1514168    15.87   0.000     2.097855    2.707687
         11  |   2.411041   .1507083    16.00   0.000     2.107434    2.714647
         12  |   2.065517   .0830031    24.88   0.000     1.898547    2.232487
         13  |   2.065517   .0830031    24.88   0.000     1.898547    2.232487
         14  |        2.1     .08047    26.10   0.000     1.938126    2.261874
         15  |   2.375862     .10426    22.79   0.000     2.166132    2.585593
         16  |   2.548276   .0985496    25.86   0.000     2.350033    2.746519
         17  |   2.594349   .1030106    25.19   0.000     2.387019     2.80168
         18  |   2.641263   .1250687    21.12   0.000     2.389587    2.892939
         19  |   2.669057   .1185239    22.52   0.000     2.430099    2.908015
         20  |   2.665595    .130668    20.40   0.000     2.402408    2.928781
         21  |   2.704141   .1339347    20.19   0.000     2.434147    2.974134
         22  |   2.707805   .1435497    18.86   0.000      2.41875     2.99686
------------------------------------------------------------------------------

. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==0

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         21       42.00       42.00
          1 |         29       58.00      100.00
------------+-----------------------------------
      Total |         50      100.00

. * Successful social vs. failed social
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        594

Group variable: revid                           Number of groups  =         54
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =         53
                                                DF:     min       =      51.11
                                                        avg       =      51.11
DF adjustment:   Small sample                           max       =      51.11
                                                F(  13,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 54 clusters in revid)
------------------------------------------------------------------------------
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.84e-16   .0513427     0.00   1.000    -.1030696    .1030696
          1  |       .025   .0442785     0.56   0.575    -.0638882    .1138882
          3  |         .1    .113652     0.88   0.383    -.1281543    .3281543
          4  |         .1    .113652     0.88   0.383    -.1281543    .3281543
          5  |       .125   .1158771     1.08   0.286    -.1076212    .3576212
          6  |        .15   .1179207     1.27   0.209    -.0867237    .3867237
          7  |        .15   .1286133     1.17   0.249    -.1081888    .4081888
          8  |        .15   .1286133     1.17   0.249    -.1081888    .4081888
          9  |       .125   .1318394     0.95   0.348    -.1396652    .3896652
         10  |        .15   .1336391     1.12   0.267    -.1182781    .4182781
             |
success#year |
       1  0  |   .0714286   .0873588     0.82   0.417    -.1039426    .2467997
       1  1  |      -.025   .0442785    -0.56   0.575    -.1138882    .0638882
       1  3  |  -.5285714   .2522699    -2.10   0.041    -1.034999   -.0221442
       1  4  |  -.7428571   .3078405    -2.41   0.019    -1.360841    -.124873
       1  5  |  -.7678571    .308669    -2.49   0.016    -1.387504   -.1482099
       1  6  |  -.7928571   .3094419    -2.56   0.013    -1.414056   -.1716581
       1  7  |  -.8642857   .3274577    -2.64   0.011    -1.521651   -.2069204
       1  8  |  -.9357143   .3233244    -2.89   0.006    -1.584782   -.2866465
       1  9  |  -.9107143   .3246212    -2.81   0.007    -1.562385   -.2590432
       1 10  |  -.9357143   .3253563    -2.88   0.006    -1.588861   -.2825675
             |
       _cons |   2.481481   .0826893    30.01   0.000     2.315484    2.647479
-------------+----------------------------------------------------------------
     sigma_u |  .71580629
     sigma_e |  .44990286
         rho |  .71682279   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        594
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =         53
DF adjustment:   Small sample                   DF:     min       =      51.11
                                                        avg       =      51.11
Within VCE type: Delta-method                           max       =      51.11

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   2.481481   .0902344    27.50   0.000     2.300338    2.662625
          2  |   2.506481   .0874696    28.66   0.000     2.330888    2.682075
          3  |   2.481481   .0826893    30.01   0.000     2.315484    2.647479
          4  |   2.581481   .0746984    34.56   0.000     2.431526    2.731437
          5  |   2.581481   .0746984    34.56   0.000     2.431526    2.731437
          6  |   2.606481   .0751895    34.67   0.000      2.45554    2.757423
          7  |   2.631481   .0760452    34.60   0.000     2.478822    2.784141
          8  |   2.631481   .0836591    31.45   0.000     2.463537    2.799426
          9  |   2.631481   .0836591    31.45   0.000     2.463537    2.799426
         10  |   2.606481   .0890011    29.29   0.000     2.427813     2.78515
         11  |   2.631481   .0916823    28.70   0.000     2.447431    2.815532
         12  |    2.55291   .1059965    24.08   0.000     2.340124    2.765696
         13  |   2.481481   .0826893    30.01   0.000     2.315484    2.647479
         14  |   2.481481   .0826893    30.01   0.000     2.315484    2.647479
         15  |    2.05291   .1989777    10.32   0.000     1.653466    2.452354
         16  |   1.838624   .2456394     7.49   0.000     1.345508    2.331741
         17  |   1.838624   .2456394     7.49   0.000     1.345508    2.331741
         18  |   1.838624   .2456394     7.49   0.000     1.345508    2.331741
         19  |   1.767196   .2602804     6.79   0.000     1.244688    2.289704
         20  |   1.695767   .2562299     6.62   0.000      1.18139    2.210144
         21  |   1.695767   .2562299     6.62   0.000      1.18139    2.210144
         22  |   1.695767   .2562299     6.62   0.000      1.18139    2.210144
------------------------------------------------------------------------------

. mi xeq 1: tab success if e(N_mi) & year==2 & leftist==1

m=1 data:
-> tab success if e(N_mi) & year==2 & leftist==1

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         40       74.07       74.07
          1 |         14       25.93      100.00
------------+-----------------------------------
      Total |         54      100.00

. * Urban civic, excluding cases of postcommunist transitions
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.success##ib(2).year if leftist==0 & incgovcommunis
> t==0, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        484

Group variable: revid                           Number of groups  =         44
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2299
                                                Largest FMI       =     0.0906
                                                Complete DF       =         43
                                                DF:     min       =      36.60
                                                        avg       =      40.22
DF adjustment:   Small sample                           max       =      41.13
                                                F(  16,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                (Within VCE adjusted for 44 clusters in revid)
------------------------------------------------------------------------------
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -1.57e-16          .        .       .            .           .
          1  |  -1.66e-16          .        .       .            .           .
          3  |  -1.12e-16          .        .       .            .           .
          4  |   .0526316   .0529275     0.99   0.326    -.0542473    .1595105
          5  |   .0526316   .0933553     0.56   0.576     -.135885    .2411482
          6  |   .1052632   .1308402     0.80   0.426    -.1589485    .3694748
          7  |   .0546925   .1218154     0.45   0.656    -.1914299    .3008149
          8  |   .1057105   .1119299     0.94   0.351    -.1208422    .3322631
          9  |   .1767469   .1210952     1.46   0.153    -.0684308    .4219246
         10  |   .1858872   .1196514     1.55   0.129    -.0566385    .4284128
             |
success#year |
       1  0  |       -.04   .0404921    -0.99   0.329    -.1217677    .0417677
       1  1  |       -.04   .0404921    -0.99   0.329    -.1217677    .0417677
       1  3  |        .12   .0671486     1.79   0.081    -.0155963    .2555963
       1  4  |   .1473684   .0981481     1.50   0.141    -.0508265    .3455633
       1  5  |   .1873684   .1411355     1.33   0.192    -.0976331    .4723699
       1  6  |   .1347368   .1781545     0.76   0.454    -.2250189    .4944926
       1  7  |   .2290068   .1654859     1.38   0.174    -.1053908    .5634043
       1  8  |    .178835    .178686     1.00   0.323    -.1823286    .5399987
       1  9  |   .1499622    .188455     0.80   0.431    -.2313929    .5313172
       1 10  |   .0983638   .1843313     0.53   0.597    -.2747393    .4714669
             |
       _cons |   2.340909    .048849    47.92   0.000     2.242266    2.439552
-------------+----------------------------------------------------------------
     sigma_u |    .629383
     sigma_e |  .32697317
         rho |  .78746692   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(success=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        484
                                                Average RVI       =     0.6810
                                                Largest FMI       =     0.1075
                                                Complete DF       =         43
DF adjustment:   Small sample                   DF:     min       =      35.58
                                                        avg       =      39.96
Within VCE type: Delta-method                           max       =      41.13

Expression   : Linear prediction, predict(xb)

1._at        : success         =           0
               year            =           0

2._at        : success         =           0
               year            =           1

3._at        : success         =           0
               year            =           2

4._at        : success         =           0
               year            =           3

5._at        : success         =           0
               year            =           4

6._at        : success         =           0
               year            =           5

7._at        : success         =           0
               year            =           6

8._at        : success         =           0
               year            =           7

9._at        : success         =           0
               year            =           8

10._at       : success         =           0
               year            =           9

11._at       : success         =           0
               year            =          10

12._at       : success         =           1
               year            =           0

13._at       : success         =           1
               year            =           1

14._at       : success         =           1
               year            =           2

15._at       : success         =           1
               year            =           3

16._at       : success         =           1
               year            =           4

17._at       : success         =           1
               year            =           5

18._at       : success         =           1
               year            =           6

19._at       : success         =           1
               year            =           7

20._at       : success         =           1
               year            =           8

21._at       : success         =           1
               year            =           9

22._at       : success         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   2.340909    .048849    47.92   0.000     2.242266    2.439552
          2  |   2.340909    .048849    47.92   0.000     2.242266    2.439552
          3  |   2.340909    .048849    47.92   0.000     2.242266    2.439552
          4  |   2.340909    .048849    47.92   0.000     2.242266    2.439552
          5  |   2.393541   .0682742    35.06   0.000     2.255671     2.53141
          6  |   2.393541   .0921187    25.98   0.000     2.207521     2.57956
          7  |   2.446172    .116843    20.94   0.000     2.210226    2.682119
          8  |   2.395602   .1090467    21.97   0.000     2.175245    2.615958
          9  |    2.44662   .1015092    24.10   0.000     2.241024    2.652215
         10  |   2.517656   .1105417    22.78   0.000     2.293689    2.741623
         11  |   2.526796   .1097724    23.02   0.000     2.304076    2.749517
         12  |   2.300909   .0577742    39.83   0.000     2.184243    2.417575
         13  |   2.300909   .0577742    39.83   0.000     2.184243    2.417575
         14  |   2.340909    .048849    47.92   0.000     2.242266    2.439552
         15  |   2.460909   .0605467    40.64   0.000     2.338644    2.583174
         16  |   2.540909   .0647204    39.26   0.000     2.410216    2.671602
         17  |   2.580909   .0720993    35.80   0.000     2.435316    2.726503
         18  |   2.580909   .0838904    30.77   0.000     2.411505    2.750313
         19  |   2.624608   .0769749    34.10   0.000     2.468835    2.780381
         20  |   2.625455   .1039851    25.25   0.000     2.415098    2.835811
         21  |   2.667618   .1090253    24.47   0.000     2.446857    2.888379
         22  |    2.62516   .1033087    25.41   0.000     2.416032    2.834288
------------------------------------------------------------------------------

. tab success if e(N) & year==2 & leftist==0 & incgovcommunist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         19       43.18       43.18
          1 |         25       56.82      100.00
------------+-----------------------------------
      Total |         44      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 2.9 percent of observations

. * Complete case sample as robustness check
. clear

. use simplediffindifflong.dta, clear

. xtreg vdstown_ord i.success##ib(2).year if leftist==1, fe
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        594
Group variable: revid                           Number of groups  =         54

R-sq:                                           Obs per group:
     within  = 0.1462                                         min =         11
     between = 0.1794                                         avg =       11.0
     overall = 0.1688                                         max =         11

                                                F(20,520)         =       4.45
corr(u_i, Xb)  = 0.0858                         Prob > F          =     0.0000

------------------------------------------------------------------------------
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.84e-16   .1006013     0.00   1.000     -.197635     .197635
          1  |       .025   .1006013     0.25   0.804     -.172635     .222635
          3  |         .1   .1006013     0.99   0.321     -.097635     .297635
          4  |         .1   .1006013     0.99   0.321     -.097635     .297635
          5  |       .125   .1006013     1.24   0.215     -.072635     .322635
          6  |        .15   .1006013     1.49   0.137     -.047635     .347635
          7  |        .15   .1006013     1.49   0.137     -.047635     .347635
          8  |        .15   .1006013     1.49   0.137     -.047635     .347635
          9  |       .125   .1006013     1.24   0.215     -.072635     .322635
         10  |        .15   .1006013     1.49   0.137     -.047635     .347635
             |
success#year |
       1  0  |   .0714286   .1975771     0.36   0.718    -.3167189     .459576
       1  1  |      -.025   .1975771    -0.13   0.899    -.4131474    .3631474
       1  3  |  -.5285714   .1975771    -2.68   0.008    -.9167189    -.140424
       1  4  |  -.7428571   .1975771    -3.76   0.000    -1.131005   -.3547097
       1  5  |  -.7678571   .1975771    -3.89   0.000    -1.156005   -.3797097
       1  6  |  -.7928571   .1975771    -4.01   0.000    -1.181005   -.4047097
       1  7  |  -.8642857   .1975771    -4.37   0.000    -1.252433   -.4761383
       1  8  |  -.9357143   .1975771    -4.74   0.000    -1.323862   -.5475668
       1  9  |  -.9107143   .1975771    -4.61   0.000    -1.298862   -.5225668
       1 10  |  -.9357143   .1975771    -4.74   0.000    -1.323862   -.5475668
             |
       _cons |   2.481481    .061224    40.53   0.000     2.361205    2.601758
-------------+----------------------------------------------------------------
     sigma_u |  .71580629
     sigma_e |  .44990286
         rho |  .71682279   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(53, 520) = 27.57                    Prob > F = 0.0000

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        594
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   2.481481   .0798264    31.09   0.000     2.325025    2.637938
       0  1  |   2.506481   .0798264    31.40   0.000     2.350025    2.662938
       0  2  |   2.481481    .061224    40.53   0.000     2.361485    2.601478
       0  3  |   2.581481   .0798264    32.34   0.000     2.425025    2.737938
       0  4  |   2.581481   .0798264    32.34   0.000     2.425025    2.737938
       0  5  |   2.606481   .0798264    32.65   0.000     2.450025    2.762938
       0  6  |   2.631481   .0798264    32.97   0.000     2.475025    2.787938
       0  7  |   2.631481   .0798264    32.97   0.000     2.475025    2.787938
       0  8  |   2.631481   .0798264    32.97   0.000     2.475025    2.787938
       0  9  |   2.606481   .0798264    32.65   0.000     2.450025    2.762938
       0 10  |   2.631481   .0798264    32.97   0.000     2.475025    2.787938
       1  0  |    2.55291   .1586433    16.09   0.000     2.241975    2.863845
       1  1  |   2.481481   .1586433    15.64   0.000     2.170546    2.792417
       1  2  |   2.481481    .061224    40.53   0.000     2.361485    2.601478
       1  3  |    2.05291   .1586433    12.94   0.000     1.741975    2.363845
       1  4  |   1.838624   .1586433    11.59   0.000     1.527689     2.14956
       1  5  |   1.838624   .1586433    11.59   0.000     1.527689     2.14956
       1  6  |   1.838624   .1586433    11.59   0.000     1.527689     2.14956
       1  7  |   1.767196   .1586433    11.14   0.000     1.456261    2.078131
       1  8  |   1.695767   .1586433    10.69   0.000     1.384832    2.006702
       1  9  |   1.695767   .1586433    10.69   0.000     1.384832    2.006702
       1 10  |   1.695767   .1586433    10.69   0.000     1.384832    2.006702
------------------------------------------------------------------------------

. xtreg vdstown_ord i.success##ib(2).year if leftist==0, fe
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        517
Group variable: revid                           Number of groups  =         50

R-sq:                                           Obs per group:
     within  = 0.1923                                         min =          5
     between = 0.1581                                         avg =       10.3
     overall = 0.1245                                         max =         11

                                                F(20,447)         =       5.32
corr(u_i, Xb)  = 0.1074                         Prob > F          =     0.0000

------------------------------------------------------------------------------
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   1.35e-15    .135686     0.00   1.000    -.2666617    .2666617
          1  |   1.35e-15    .135686     0.00   1.000    -.2666617    .2666617
          3  |    .047619    .135686     0.35   0.726    -.2190427    .3142808
          4  |   .1428571    .135686     1.05   0.293    -.1238046    .4095189
          5  |   .1904762    .135686     1.40   0.161    -.0761856    .4571379
          6  |   .2380952    .135686     1.75   0.080    -.0285665     .504757
          7  |   .2384354   .1376107     1.73   0.084     -.032009    .5088797
          8  |   .2979748   .1396747     2.13   0.033     .0234742    .5724755
          9  |   .3629521   .1419051     2.56   0.011      .084068    .6418362
         10  |    .389341   .1470162     2.65   0.008     .1004122    .6782697
             |
success#year |
       1  0  |  -.0344828   .1781645    -0.19   0.847    -.3846268    .3156613
       1  1  |  -.0344828   .1781645    -0.19   0.847    -.3846268    .3156613
       1  3  |    .228243   .1781645     1.28   0.201     -.121901     .578387
       1  4  |   .3054187   .1781645     1.71   0.087    -.0447253    .6555627
       1  5  |   .2762726   .1789644     1.54   0.123    -.0754436    .6279887
       1  6  |   .2643678   .1789644     1.48   0.140    -.0873483     .616084
       1  7  |   .2564767   .1830331     1.40   0.162    -.1032356    .6161889
       1  8  |   .1969372   .1845899     1.07   0.287    -.1658346     .559709
       1  9  |   .1821451   .1872417     0.97   0.331    -.1858383    .5501285
       1 10  |    .231135   .1932398     1.20   0.232    -.1486363    .6109063
             |
       _cons |   2.129963   .0622714    34.20   0.000     2.007582    2.252344
-------------+----------------------------------------------------------------
     sigma_u |   .6929802
     sigma_e |  .43967297
         rho |  .71298797   (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(49, 447) = 22.13                    Prob > F = 0.0000

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        517
Model VCE    : Conventional

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   2.129963   .1202251    17.72   0.000     1.894326      2.3656
       0  1  |   2.129963   .1202251    17.72   0.000     1.894326      2.3656
       0  2  |   2.129963   .0622714    34.20   0.000     2.007913    2.252013
       0  3  |   2.177582   .1202251    18.11   0.000     1.941945    2.413219
       0  4  |    2.27282   .1202251    18.90   0.000     2.037183    2.508457
       0  5  |   2.320439   .1202251    19.30   0.000     2.084802    2.556076
       0  6  |   2.368058   .1202251    19.70   0.000     2.132421    2.603695
       0  7  |   2.368398   .1223173    19.36   0.000     2.128661    2.608136
       0  8  |   2.427938   .1245825    19.49   0.000     2.183761    2.672115
       0  9  |   2.492915   .1270456    19.62   0.000      2.24391     2.74192
       0 10  |   2.519304   .1326988    18.99   0.000     2.259219    2.779389
       1  0  |    2.09548   .0977285    21.44   0.000     1.903936    2.287025
       1  1  |    2.09548   .0977285    21.44   0.000     1.903936    2.287025
       1  2  |   2.129963   .0622714    34.20   0.000     2.007913    2.252013
       1  3  |   2.405825   .0977285    24.62   0.000     2.214281    2.597369
       1  4  |   2.578239   .0977285    26.38   0.000     2.386694    2.769783
       1  5  |   2.596712   .0990381    26.22   0.000     2.402601    2.790823
       1  6  |   2.632426   .0990381    26.58   0.000     2.438315    2.826537
       1  7  |   2.624875   .1034961    25.36   0.000     2.422026    2.827724
       1  8  |   2.624875   .1034961    25.36   0.000     2.422026    2.827724
       1  9  |    2.67506    .105181    25.43   0.000     2.468909    2.881211
       1 10  |   2.750439   .1089141    25.25   0.000     2.536971    2.963907
------------------------------------------------------------------------------

. * Urban civic, excluding cases of postcommunist transitions
. xtreg vdstown_ord i.success##ib(2).year if leftist==0 & incgovcommunist==0, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        461
Group variable: revid                           Number of groups  =         44

R-sq:                                           Obs per group:
     within  = 0.1455                                         min =          7
     between = 0.1489                                         avg =       10.5
     overall = 0.0881                                         max =         11

                                                F(18,43)          =          .
corr(u_i, Xb)  = 0.1265                         Prob > F          =          .

                                 (Std. Err. adjusted for 44 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
 vdstown_ord |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -7.14e-16   5.18e-09    -0.00   1.000    -1.05e-08    1.05e-08
          1  |  -7.53e-16   6.77e-09    -0.00   1.000    -1.37e-08    1.37e-08
          3  |  -6.46e-16   7.58e-10    -0.00   1.000    -1.53e-09    1.53e-09
          4  |   .0526316   .0529847     0.99   0.326    -.0542223    .1594854
          5  |   .0526316   .0934562     0.56   0.576    -.1358409     .241104
          6  |   .1052632   .1309817     0.80   0.426    -.1588866    .3694129
          7  |   .1015038   .1109044     0.92   0.365    -.1221564    .3251639
          8  |   .1640038   .0938264     1.75   0.088    -.0252152    .3532227
          9  |   .2334482    .108858     2.14   0.038     .0139151    .4529813
         10  |   .2566625   .1169528     2.19   0.034     .0208046    .4925204
             |
success#year |
       1  0  |       -.04   .0405359    -0.99   0.329    -.1217485    .0417485
       1  1  |       -.04   .0405359    -0.99   0.329    -.1217485    .0417485
       1  3  |        .12   .0672213     1.79   0.081    -.0155646    .2555646
       1  4  |   .1473684   .0982542     1.50   0.141    -.0507801    .3455169
       1  5  |   .1873684   .1412882     1.33   0.192    -.0975663    .4723032
       1  6  |   .1347368   .1783472     0.76   0.454    -.2249347    .4944083
       1  7  |      .1939   .1592081     1.22   0.230    -.1271738    .5149737
       1  8  |      .1314     .17263     0.76   0.451    -.2167417    .4795416
       1  9  |   .1142173   .1860765     0.61   0.543    -.2610417    .4894763
       1 10  |   .1191848    .175479     0.68   0.501    -.2347022    .4730718
             |
       _cons |   2.343389   .0467168    50.16   0.000     2.249175    2.437602
-------------+----------------------------------------------------------------
     sigma_u |  .62023762
     sigma_e |  .31776305
         rho |  .79209389   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        461
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   2.343389   .0467168    50.16   0.000     2.251826    2.434952
       0  1  |   2.343389   .0467168    50.16   0.000     2.251826    2.434952
       0  2  |   2.343389   .0467168    50.16   0.000     2.251826    2.434952
       0  3  |   2.343389   .0467168    50.16   0.000     2.251826    2.434952
       0  4  |    2.39602   .0673698    35.57   0.000     2.263978    2.528063
       0  5  |    2.39602   .0914714    26.19   0.000      2.21674    2.575301
       0  6  |   2.448652   .1201657    20.38   0.000     2.213132    2.684172
       0  7  |   2.444893   .1013982    24.11   0.000     2.246156    2.643629
       0  8  |   2.507393   .0877296    28.58   0.000     2.335446     2.67934
       0  9  |   2.576837   .1020502    25.25   0.000     2.376822    2.776852
       0 10  |   2.600051   .1100497    23.63   0.000     2.384358    2.815745
       1  0  |   2.303389   .0557728    41.30   0.000     2.194076    2.412701
       1  1  |   2.303389   .0557728    41.30   0.000     2.194076    2.412701
       1  2  |   2.343389   .0467168    50.16   0.000     2.251826    2.434952
       1  3  |   2.463389   .0592428    41.58   0.000     2.347275    2.579503
       1  4  |   2.543389   .0637035    39.93   0.000     2.418532    2.668245
       1  5  |   2.583389   .0716912    36.03   0.000     2.442877    2.723901
       1  6  |   2.583389   .0842475    30.66   0.000     2.418267    2.748511
       1  7  |   2.638793   .0779613    33.85   0.000     2.485991    2.791594
       1  8  |   2.638793   .1079191    24.45   0.000     2.427275     2.85031
       1  9  |   2.691054   .1159321    23.21   0.000     2.463832    2.918277
       1 10  |   2.719236   .0961394    28.28   0.000     2.530806    2.907666
------------------------------------------------------------------------------

. tab success if e(N) & year==2 & leftist==0 & incgovcommunist==0

    Whether |
episode was |
 successful |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         19       43.18       43.18
          1 |         25       56.82      100.00
------------+-----------------------------------
      Total |         44      100.00

. 
. *==========================================
. * EFFECT OF REVOLUTION ON ETHNIC EXCLUSION
. *==========================================
. * Multiple imputation failed due to the limited nature of the data
. * Using complete case sample only
. * Ethnic exclusion
. use simplediffindifflong.dta, clear

. xtreg exclpop i.success##ib(2).year if  leftist==0, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        385
Group variable: revid                           Number of groups  =         44

R-sq:                                           Obs per group:
     within  = 0.0438                                         min =          1
     between = 0.0050                                         avg =        8.8
     overall = 0.0035                                         max =         11

                                                F(18,43)          =          .
corr(u_i, Xb)  = -0.0137                        Prob > F          =          .

                                 (Std. Err. adjusted for 44 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
     exclpop |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |  -.0066667   .0066917    -1.00   0.325    -.0201617    .0068284
          1  |  -4.46e-17          .        .       .            .           .
          3  |  -.0312698   .0314789    -0.99   0.326     -.094753    .0322133
          4  |   .0001587    .000225     0.71   0.484    -.0002951    .0006126
          5  |   .0022626   .0020544     1.10   0.277    -.0018804    .0064056
          6  |   .0030808    .002682     1.15   0.257     -.002328    .0084897
          7  |    .003938   .0033165     1.19   0.242    -.0027504    .0106263
          8  |   .0048755   .0039881     1.22   0.228    -.0031672    .0129182
          9  |   .0059469   .0047268     1.26   0.215    -.0035855    .0154793
         10  |   .0059469   .0047268     1.26   0.215    -.0035855    .0154793
             |
success#year |
       1  0  |    .007963   .0090752     0.88   0.385     -.010339    .0262649
       1  1  |   .0037037   .0055537     0.67   0.508    -.0074964    .0149038
       1  3  |   .0054365   .0405315     0.13   0.894     -.076303     .087176
       1  4  |  -.0252366   .0264521    -0.95   0.345    -.0785823    .0281091
       1  5  |  -.0324275   .0268072    -1.21   0.233    -.0864894    .0216344
       1  6  |  -.0288978   .0267028    -1.08   0.285    -.0827493    .0249536
       1  7  |  -.0305396   .0272759    -1.12   0.269    -.0855467    .0244676
       1  8  |  -.0367409   .0279964    -1.31   0.196     -.093201    .0197193
       1  9  |  -.0220504   .0331009    -0.67   0.509    -.0888048     .044704
       1 10  |  -.0217232   .0338985    -0.64   0.525    -.0900861    .0466396
             |
       _cons |   .1701899   .0125738    13.54   0.000     .1448325    .1955473
-------------+----------------------------------------------------------------
     sigma_u |  .17627434
     sigma_e |  .06075783
         rho |  .89381265   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        385
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   .1635232   .0141674    11.54   0.000     .1357557    .1912908
       0  1  |   .1701899   .0125738    13.54   0.000     .1455458     .194834
       0  2  |   .1701899   .0125738    13.54   0.000     .1455458     .194834
       0  3  |   .1389201   .0331794     4.19   0.000     .0738896    .2039505
       0  4  |   .1703486   .0125771    13.54   0.000      .145698    .1949993
       0  5  |   .1724525   .0128102    13.46   0.000      .147345    .1975601
       0  6  |   .1732707   .0129504    13.38   0.000     .1478884     .198653
       0  7  |   .1741279   .0131218    13.27   0.000     .1484096    .1998461
       0  8  |   .1750654    .013334    13.13   0.000     .1489311    .2011996
       0  9  |   .1761368   .0136019    12.95   0.000     .1494775    .2027961
       0 10  |   .1761368   .0136019    12.95   0.000     .1494775    .2027961
       1  0  |   .1714862   .0136792    12.54   0.000     .1446754     .198297
       1  1  |   .1738936   .0133665    13.01   0.000     .1476958    .2000914
       1  2  |   .1701899   .0125738    13.54   0.000     .1455458     .194834
       1  3  |   .1443566    .013632    10.59   0.000     .1176384    .1710747
       1  4  |    .145112   .0144937    10.01   0.000     .1167049    .1735191
       1  5  |   .1400251   .0145096     9.65   0.000     .1115868    .1684633
       1  6  |   .1443729   .0145436     9.93   0.000      .115868    .1728778
       1  7  |   .1435883   .0150524     9.54   0.000     .1140861    .1730905
       1  8  |   .1383245   .0154855     8.93   0.000     .1079734    .1686756
       1  9  |   .1540864   .0216635     7.11   0.000     .1116268     .196546
       1 10  |   .1544135    .022541     6.85   0.000      .110234     .198593
------------------------------------------------------------------------------

. xtreg exclpop i.success##ib(2).year if  leftist==1, fe vce(robust)
note: 1.success omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        394
Group variable: revid                           Number of groups  =         38

R-sq:                                           Obs per group:
     within  = 0.0747                                         min =          8
     between = 0.0256                                         avg =       10.4
     overall = 0.0001                                         max =         11

                                                F(10,37)          =          .
corr(u_i, Xb)  = -0.3209                        Prob > F          =          .

                                 (Std. Err. adjusted for 38 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
     exclpop |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.success |          0  (omitted)
             |
        year |
          0  |   .0031613   .0079344     0.40   0.693    -.0129152    .0192379
          1  |   -.000213   .0002167    -0.98   0.332    -.0006522    .0002261
          3  |  -.0042014   .0088404    -0.48   0.637    -.0221138     .013711
          4  |   .0191319   .0287613     0.67   0.510    -.0391441    .0774079
          5  |   .0260949   .0417511     0.63   0.536    -.0585008    .1106906
          6  |   .0260949   .0417511     0.63   0.536    -.0585008    .1106906
          7  |   .0260949   .0417511     0.63   0.536    -.0585008    .1106906
          8  |   .0266362   .0426294     0.62   0.536    -.0597393    .1130117
          9  |   .0266362   .0426294     0.62   0.536    -.0597393    .1130117
         10  |   .0266362   .0426294     0.62   0.536    -.0597393    .1130117
             |
success#year |
       1  0  |  -.0031613   .0079344    -0.40   0.693    -.0192379    .0129152
       1  1  |    .000213   .0002167     0.98   0.332    -.0002261    .0006522
       1  3  |  -.0337397   .1164543    -0.29   0.774    -.2696987    .2022192
       1  4  |   -.157264    .112178    -1.40   0.169    -.3845582    .0700302
       1  5  |   -.164227   .1161888    -1.41   0.166    -.3996479     .071194
       1  6  |  -.1433179   .1137106    -1.26   0.215    -.3737174    .0870816
       1  7  |  -.1433179   .1137106    -1.26   0.215    -.3737174    .0870816
       1  8  |  -.1438592    .114036    -1.26   0.215    -.3749181    .0871997
       1  9  |  -.1584046   .1100482    -1.44   0.158    -.3813835    .0645742
       1 10  |  -.1584046   .1100482    -1.44   0.158    -.3813835    .0645742
             |
       _cons |   .2020032   .0296817     6.81   0.000     .1418624     .262144
-------------+----------------------------------------------------------------
     sigma_u |  .18778856
     sigma_e |  .12002751
         rho |  .70996033   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins success#year, noestimcheck

Adjusted predictions                            Number of obs     =        394
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
success#year |
       0  0  |   .2051645   .0334839     6.13   0.000     .1395373    .2707918
       0  1  |   .2017902   .0296783     6.80   0.000     .1436217    .2599586
       0  2  |   .2020032   .0296817     6.81   0.000     .1438281    .2601783
       0  3  |   .1978018   .0266942     7.41   0.000     .1454821    .2501214
       0  4  |   .2211351   .0289106     7.65   0.000     .1644715    .2777988
       0  5  |   .2280981   .0325652     7.00   0.000     .1642715    .2919247
       0  6  |   .2280981   .0325652     7.00   0.000     .1642715    .2919247
       0  7  |   .2280981   .0325652     7.00   0.000     .1642715    .2919247
       0  8  |   .2286394   .0331966     6.89   0.000     .1635752    .2937036
       0  9  |   .2286394   .0331966     6.89   0.000     .1635752    .2937036
       0 10  |   .2286394   .0331966     6.89   0.000     .1635752    .2937036
       1  0  |   .2020032   .0296817     6.81   0.000     .1438281    .2601783
       1  1  |   .2020032   .0296817     6.81   0.000     .1438281    .2601783
       1  2  |   .2020032   .0296817     6.81   0.000     .1438281    .2601783
       1  3  |    .164062   .1002678     1.64   0.102    -.0324593    .3605834
       1  4  |   .0638711   .0882486     0.72   0.469     -.109093    .2368353
       1  5  |   .0638711   .0882486     0.72   0.469     -.109093    .2368353
       1  6  |   .0847802   .0849592     1.00   0.318    -.0817368    .2512973
       1  7  |   .0847802   .0849592     1.00   0.318    -.0817368    .2512973
       1  8  |   .0847802   .0849592     1.00   0.318    -.0817368    .2512973
       1  9  |   .0702348   .0807931     0.87   0.385    -.0881169    .2285864
       1 10  |   .0702348   .0807931     0.87   0.385    -.0881169    .2285864
------------------------------------------------------------------------------

. 
. *==========================================
. * EFFECT OF REVOLUTION ON GENDER INEQUALITY
. *==========================================
. * Compared to matched samples
. * Women's political empowerment index
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "v2x_gender"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1157
                                                Largest FMI       =     0.1754
                                                Complete DF       =          8
                                                DF:     min       =       5.68
                                                        avg       =       6.49
DF adjustment:   Small sample                           max       =       6.55
                                                F(   9,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
  v2x_gender |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0048594    .004083    -1.19   0.276    -.0146736    .0049549
          1  |   .0010105   .0011644     0.87   0.421    -.0018778    .0038988
          3  |   .0410181   .0254327     1.61   0.154    -.0199811    .1020173
          4  |   .0480622   .0264802     1.82   0.115    -.0154491    .1115735
          5  |   .0551451   .0284827     1.94   0.097    -.0131686    .1234588
          6  |   .0519195   .0287916     1.80   0.117    -.0171351    .1209741
          7  |   .0521272   .0289224     1.80   0.117     -.017241    .1214955
          8  |    .052196   .0294099     1.77   0.122    -.0183414    .1227334
          9  |   .0643444   .0335053     1.92   0.099    -.0160149    .1447037
         10  |   .0660696    .033281     1.99   0.090    -.0137516    .1458908
             |
  revny#year |
       1  0  |   .0080804    .004012     2.01   0.087    -.0015641    .0177248
       1  1  |  -.0008184   .0025374    -0.32   0.757    -.0069404    .0053036
       1  3  |    .026977   .0504233     0.54   0.610     -.093956    .1479101
       1  4  |   .0391572   .0672614     0.58   0.580    -.1221586    .2004731
       1  5  |   .0515545    .070336     0.73   0.489    -.1171353    .2202442
       1  6  |    .051819    .071133     0.73   0.492    -.1187821    .2224202
       1  7  |   .0480378   .0712909     0.67   0.523    -.1229421    .2190177
       1  8  |   .0522097    .077975     0.67   0.526    -.1348007    .2392201
       1  9  |   .0401343    .072958     0.55   0.601    -.1348437    .2151123
       1 10  |   .0432204   .0744664     0.58   0.581    -.1353753    .2218161
             |
       _cons |   .3094936   .0380751     8.13   0.000     .2181767    .4008106
-------------+----------------------------------------------------------------
     sigma_u |  .14201541
     sigma_e |  .08920863
         rho |  .71705815   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.1233
                                                Largest FMI       =     0.0340
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.54
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3046343   .0377519     8.07   0.000     .2140925    .3951761
          2  |   .3105041   .0382769     8.11   0.000     .2187032    .4023051
          3  |   .3094936   .0380751     8.13   0.000     .2181767    .4008106
          4  |   .3505117   .0217691    16.10   0.000     .2983014     .402722
          5  |   .3575559    .021158    16.90   0.000     .3068112    .4083006
          6  |   .3646388   .0235128    15.51   0.000     .3082466     .421031
          7  |   .3614131   .0232958    15.51   0.000     .3055414    .4172848
          8  |   .3616209   .0235535    15.35   0.000      .305131    .4181108
          9  |   .3616896   .0254578    14.21   0.000     .3006328    .4227465
         10  |    .373838   .0232173    16.10   0.000     .3181545    .4295216
         11  |   .3755633   .0228305    16.45   0.000     .3208073    .4303192
         12  |   .3127147   .0372912     8.39   0.000     .2232777    .4021516
         13  |   .3096857   .0376015     8.24   0.000     .2195045     .399867
         14  |   .3094936   .0380751     8.13   0.000     .2181767    .4008106
         15  |   .3774888   .0384417     9.82   0.000     .2852925     .469685
         16  |   .3967131   .0478001     8.30   0.000     .2820726    .5113537
         17  |   .4161933   .0486045     8.56   0.000     .2996235    .5327631
         18  |   .4132322   .0493011     8.38   0.000     .2949917    .5314727
         19  |   .4096587   .0493405     8.30   0.000     .2913238    .5279935
         20  |   .4138993    .053991     7.67   0.000     .2844111    .5433876
         21  |   .4139723   .0523654     7.91   0.000     .2883827    .5395619
         22  |   .4187837   .0542712     7.72   0.000     .2886235    .5489439
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        924

Group variable: diffid                          Number of groups  =         84
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2181
                                                Largest FMI       =     0.1207
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.21
                                                        avg       =      22.72
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.1)   =      19.83
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
  v2x_gender |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0108169   .0036141    -2.99   0.006    -.0182894   -.0033445
          1  |  -.0064684   .0032766    -1.97   0.060    -.0132432    .0003063
          3  |   .0318273   .0100534     3.17   0.004      .011041    .0526136
          4  |   .0434217   .0102723     4.23   0.000     .0221826    .0646608
          5  |   .0433921   .0109756     3.95   0.001      .020699    .0660852
          6  |   .0527608   .0132966     3.97   0.001     .0252677    .0802539
          7  |   .0543674   .0135208     4.02   0.001     .0263975    .0823373
          8  |   .0514625   .0149023     3.45   0.002     .0206197    .0823052
          9  |   .0661678   .0157947     4.19   0.000     .0334103    .0989253
         10  |   .0713681   .0180206     3.96   0.001     .0339265    .1088097
             |
  revny#year |
       1  0  |  -.0006521   .0054983    -0.12   0.907    -.0120204    .0107161
       1  1  |  -.0021411   .0062895    -0.34   0.737    -.0151453    .0108631
       1  3  |   .0038294   .0165486     0.23   0.819    -.0303865    .0380453
       1  4  |   .0581665   .0220291     2.64   0.015     .0126191    .1037138
       1  5  |   .0592674   .0261558     2.27   0.033     .0051853    .1133494
       1  6  |   .0515687   .0266302     1.94   0.065    -.0035022    .1066396
       1  7  |   .0547821   .0276975     1.98   0.060    -.0025392    .1121034
       1  8  |   .0603185   .0286619     2.10   0.047     .0009571    .1196798
       1  9  |   .0526068   .0254235     2.07   0.051    -.0002952    .1055087
       1 10  |   .0571667   .0254028     2.25   0.036     .0042131    .1101202
             |
       _cons |   .5686296   .0087976    64.63   0.000     .5504396    .5868195
-------------+----------------------------------------------------------------
     sigma_u |  .18879624
     sigma_e |  .05348956
         rho |  .92569482   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        924
                                                Average RVI       =     8.4112
                                                Largest FMI       =     0.1890
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      18.20
                                                        avg       =      22.40
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5578127   .0094231    59.20   0.000     .5383295    .5772958
          2  |   .5621611   .0096263    58.40   0.000     .5422579    .5820644
          3  |   .5686296   .0087976    64.63   0.000     .5504396    .5868195
          4  |   .6004569   .0104219    57.62   0.000     .5789086    .6220051
          5  |   .6120513   .0102592    59.66   0.000     .5908395    .6332632
          6  |   .6120217   .0109704    55.79   0.000     .5893393    .6347041
          7  |   .6213904   .0112399    55.28   0.000     .5981495    .6446312
          8  |    .622997   .0119178    52.27   0.000     .5983393    .6476547
          9  |    .620092   .0128035    48.43   0.000      .593583    .6466011
         10  |   .6347974    .013258    47.88   0.000     .6072578    .6623369
         11  |   .6399977   .0157908    40.53   0.000      .607127    .6728684
         12  |   .5571605   .0100042    55.69   0.000     .5364759    .5778452
         13  |   .5600201   .0096164    58.24   0.000     .5401371    .5799031
         14  |   .5686296   .0087976    64.63   0.000     .5504396    .5868195
         15  |   .6042863   .0121461    49.75   0.000      .579173    .6293996
         16  |   .6702178   .0127108    52.73   0.000      .643937    .6964986
         17  |   .6712891   .0159912    41.98   0.000     .6382219    .7043563
         18  |   .6729591    .017133    39.28   0.000       .63752    .7083982
         19  |   .6777791   .0174289    38.89   0.000     .6416704    .7138878
         20  |   .6804105   .0181359    37.52   0.000     .6427426    .7180784
         21  |   .6874041   .0161537    42.55   0.000     .6534927    .7213155
         22  |   .6971644   .0164439    42.40   0.000     .6626748     .731654
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 58 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.2 percent of observations

. 
. * Women's civil liberties
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "v2x_gencl"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0063351    .005676    -1.12   0.304    -.0199479    .0072777
          1  |   .0004067   .0008668     0.47   0.654    -.0016721    .0024854
          3  |   .0374509   .0327032     1.15   0.292     -.040982    .1158838
          4  |   .0449184   .0320965     1.40   0.207    -.0320593    .1218962
          5  |   .0440722   .0327241     1.35   0.223    -.0344109    .1225553
          6  |   .0484996   .0319566     1.52   0.176    -.0281427     .125142
          7  |   .0480875   .0319566     1.50   0.179    -.0285549    .1247299
          8  |   .0583305   .0318088     1.83   0.112    -.0179572    .1346183
          9  |   .0579434   .0318126     1.82   0.114    -.0183535    .1342403
         10  |   .0580749   .0317852     1.83   0.113    -.0181564    .1343061
             |
  revny#year |
       1  0  |   .0128919   .0095928     1.34   0.224    -.0101147    .0358985
       1  1  |  -.0006879   .0020562    -0.33   0.748    -.0056193    .0042436
       1  3  |   .0148499   .0539859     0.28   0.792    -.1146259    .1443257
       1  4  |  -.0059298   .0809999    -0.07   0.944    -.2001937    .1883341
       1  5  |   .0059564   .0847232     0.07   0.946    -.1972371    .2091499
       1  6  |  -.0160872   .0858934    -0.19   0.857    -.2220873    .1899129
       1  7  |  -.0160819   .0856553    -0.19   0.857    -.2215111    .1893472
       1  8  |  -.0343579   .0933156    -0.37   0.724    -.2581588    .1894429
       1  9  |  -.0512533   .0921526    -0.56   0.597    -.2722652    .1697585
       1 10  |   -.052813   .0924973    -0.57   0.587    -.2746513    .1690254
             |
       _cons |   .3280027    .045889     7.15   0.000      .217946    .4380594
-------------+----------------------------------------------------------------
     sigma_u |  .19591949
     sigma_e |  .10826613
         rho |  .76606485   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3216676   .0454167     7.08   0.000     .2127437    .4305914
          2  |   .3284094   .0459815     7.14   0.000     .2181309    .4386879
          3  |   .3280027    .045889     7.15   0.000      .217946    .4380594
          4  |   .3654536   .0217661    16.79   0.000     .3132514    .4176558
          5  |   .3729211   .0249496    14.95   0.000      .313084    .4327583
          6  |   .3720749   .0260926    14.26   0.000     .3094965    .4346534
          7  |   .3765023   .0264563    14.23   0.000     .3130515    .4399532
          8  |   .3760902   .0261886    14.36   0.000     .3132815    .4388989
          9  |   .3863332   .0293077    13.18   0.000     .3160439    .4566225
         10  |   .3859461   .0291832    13.22   0.000     .3159554    .4559369
         11  |   .3860776   .0291464    13.25   0.000     .3161751      .45598
         12  |   .3345595   .0483121     6.92   0.000     .2186914    .4504277
         13  |   .3277215   .0460005     7.12   0.000     .2173975    .4380455
         14  |   .3280027    .045889     7.15   0.000      .217946    .4380594
         15  |   .3803035   .0385521     9.86   0.000     .2878431    .4727639
         16  |   .3669914   .0577696     6.35   0.001     .2284412    .5055415
         17  |   .3780313   .0606224     6.24   0.001     .2326392    .5234234
         18  |   .3604152   .0613011     5.88   0.001     .2133953    .5074351
         19  |   .3600083   .0614153     5.86   0.001     .2127145    .5073021
         20  |   .3519753   .0660117     5.33   0.001     .1936579    .5102927
         21  |   .3346928   .0646495     5.18   0.002     .1796424    .4897432
         22  |   .3332646   .0649797     5.13   0.002     .1774222     .489107
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2386
                                                Largest FMI       =     0.0816
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.31
                                                        avg       =      23.02
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.0)   =       2.38
Within VCE type:       Robust                   Prob > F          =     0.0256

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0073847   .0035496    -2.08   0.049    -.0147239   -.0000455
          1  |   -.009017   .0040702    -2.22   0.037    -.0174325   -.0006015
          3  |   .0199457   .0105289     1.89   0.071    -.0018239    .0417152
          4  |   .0323507   .0132743     2.44   0.023     .0049048    .0597966
          5  |   .0347651   .0159724     2.18   0.040     .0017405    .0677898
          6  |   .0506682   .0264609     1.91   0.068    -.0040442    .1053805
          7  |   .0617546   .0275036     2.25   0.035     .0048778    .1186313
          8  |   .0619687   .0282524     2.19   0.039     .0035407    .1203967
          9  |   .0673098   .0283477     2.37   0.026     .0086639    .1259556
         10  |   .0709704    .030711     2.31   0.030     .0074159    .1345249
             |
  revny#year |
       1  0  |   .0081333   .0055601     1.46   0.157    -.0033627    .0196293
       1  1  |   .0058671   .0030258     1.94   0.065    -.0003891    .0121233
       1  3  |   .0498982    .016948     2.94   0.007     .0148564      .08494
       1  4  |   .1002216   .0232254     4.32   0.000     .0522007    .1482425
       1  5  |   .0847592   .0282475     3.00   0.006     .0263509    .1431676
       1  6  |   .0798858   .0264757     3.02   0.006     .0251216    .1346499
       1  7  |   .0673591   .0304534     2.21   0.037     .0043505    .1303676
       1  8  |   .0708051   .0304037     2.33   0.029     .0079043    .1337059
       1  9  |   .0743299   .0287744     2.58   0.017     .0147466    .1339133
       1 10  |   .0615261   .0325968     1.89   0.073    -.0062019    .1292541
             |
       _cons |   .5421045   .0183861    29.48   0.000     .5040894    .5801196
-------------+----------------------------------------------------------------
     sigma_u |  .20706973
     sigma_e |  .08899027
         rho |  .84410012   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     1.4794
                                                Largest FMI       =     0.0881
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.14
                                                        avg       =      22.91
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5347197   .0198389    26.95   0.000     .4937008    .5757387
          2  |   .5330875     .01977    26.96   0.000     .4922109    .5739641
          3  |   .5421045   .0183861    29.48   0.000     .5040894    .5801196
          4  |   .5620501    .011851    47.43   0.000      .537547    .5865532
          5  |   .5744552   .0092611    62.03   0.000      .555307    .5936034
          6  |   .5768696   .0093847    61.47   0.000     .5574658    .5962733
          7  |   .5927726   .0132579    44.71   0.000     .5653572    .6201881
          8  |    .603859   .0155999    38.71   0.000      .571586    .6361321
          9  |   .6040732   .0163736    36.89   0.000     .5701956    .6379508
         10  |   .6094142   .0163872    37.19   0.000     .5754687    .6433598
         11  |   .6130749   .0200293    30.61   0.000     .5715696    .6545802
         12  |    .542853   .0193752    28.02   0.000     .5027927    .5829133
         13  |   .5389546   .0186421    28.91   0.000     .5004102    .5774989
         14  |   .5421045   .0183861    29.48   0.000     .5040894    .5801196
         15  |   .6119483   .0209085    29.27   0.000     .5687179    .6551787
         16  |   .6746768     .01558    43.30   0.000     .6424636      .70689
         17  |   .6616288   .0202414    32.69   0.000     .6197725    .7034851
         18  |   .6726584   .0210289    31.99   0.000     .6291585    .7161583
         19  |   .6712181   .0222359    30.19   0.000     .6251897    .7172465
         20  |   .6748783    .021848    30.89   0.000     .6296527     .720104
         21  |   .6837442    .022099    30.94   0.000     .6379321    .7295562
         22  |    .674601   .0241866    27.89   0.000     .6243219      .72488
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg v2x_gencl i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0442                         Obs per group: min =        11
       between = 0.1042                                        avg =      11.0
       overall = 0.0231                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.0728                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0063351    .005676    -1.12   0.297    -.0194239    .0067537
          1  |   .0004067   .0008668     0.47   0.651    -.0015921    .0024054
          3  |   .0374509   .0327032     1.15   0.285    -.0379629    .1128647
          4  |   .0449184   .0320965     1.40   0.199    -.0290962    .1189331
          5  |   .0440722   .0327241     1.35   0.215    -.0313898    .1195342
          6  |   .0484996   .0319566     1.52   0.168    -.0251925    .1221917
          7  |   .0480875   .0319566     1.50   0.171    -.0256047    .1217797
          8  |   .0583305   .0318088     1.83   0.104    -.0150207    .1316817
          9  |   .0579434   .0318126     1.82   0.106    -.0154166    .1313034
         10  |   .0580749   .0317852     1.83   0.105     -.015222    .1313718
             |
  revny#year |
       1  0  |   .0128919   .0095928     1.34   0.216    -.0092291    .0350129
       1  1  |  -.0006879   .0020562    -0.33   0.747    -.0054295    .0040538
       1  3  |   .0148499   .0539859     0.28   0.790    -.1096419    .1393417
       1  4  |  -.0059298   .0809999    -0.07   0.943    -.1927159    .1808563
       1  5  |   .0059564   .0847232     0.07   0.946    -.1894155    .2013284
       1  6  |  -.0160872   .0858934    -0.19   0.856    -.2141577    .1819833
       1  7  |  -.0160819   .0856553    -0.19   0.856    -.2136034    .1814396
       1  8  |  -.0343579   .0933156    -0.37   0.722     -.249544    .1808281
       1  9  |  -.0512533   .0921526    -0.56   0.593    -.2637577     .161251
       1 10  |   -.052813   .0924973    -0.57   0.584     -.266112    .1604861
             |
       _cons |   .3280027    .045889     7.15   0.000     .2221825     .433823
-------------+----------------------------------------------------------------
     sigma_u |  .19591949
     sigma_e |  .10826613
         rho |  .76606485   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3216676   .0454167     7.08   0.000     .2326526    .4106826
       0  1  |   .3284094   .0459815     7.14   0.000     .2382873    .4185315
       0  2  |   .3280027    .045889     7.15   0.000     .2380619    .4179435
       0  3  |   .3654536   .0217661    16.79   0.000     .3227928    .4081144
       0  4  |   .3729211   .0249496    14.95   0.000     .3240209    .4218214
       0  5  |   .3720749   .0260926    14.26   0.000     .3209344    .4232154
       0  6  |   .3765023   .0264563    14.23   0.000     .3246489    .4283558
       0  7  |   .3760902   .0261886    14.36   0.000     .3247615    .4274189
       0  8  |   .3863332   .0293077    13.18   0.000     .3288912    .4437752
       0  9  |   .3859461   .0291832    13.22   0.000     .3287481    .4431441
       0 10  |   .3860776   .0291464    13.25   0.000     .3289517    .4432034
       1  0  |   .3345595   .0483121     6.92   0.000     .2398694    .4292496
       1  1  |   .3277215   .0460005     7.12   0.000     .2375623    .4178808
       1  2  |   .3280027    .045889     7.15   0.000     .2380619    .4179435
       1  3  |   .3803035   .0385521     9.86   0.000     .3047428    .4558642
       1  4  |   .3669914   .0577696     6.35   0.000     .2537651    .4802176
       1  5  |   .3780313   .0606224     6.24   0.000     .2592136     .496849
       1  6  |   .3604152   .0613011     5.88   0.000     .2402672    .4805631
       1  7  |   .3600083   .0614153     5.86   0.000     .2396364    .4803801
       1  8  |   .3519753   .0660117     5.33   0.000     .2225948    .4813558
       1  9  |   .3346928   .0646495     5.18   0.000     .2079821    .4614035
       1 10  |   .3332646   .0649797     5.13   0.000     .2059067    .4606225
------------------------------------------------------------------------------

. xtreg v2x_gencl i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.2332                         Obs per group: min =         5
       between = 0.0087                                        avg =      10.4
       overall = 0.0346                                        max =        11

                                                F(20,25)           =     10.45
corr(u_i, Xb)  = -0.0049                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0073889   .0035534    -2.08   0.048    -.0147073   -.0000704
          1  |  -.0090258   .0040749    -2.21   0.036    -.0174182   -.0006333
          3  |   .0199644   .0105421     1.89   0.070    -.0017475    .0416764
          4  |   .0323745   .0132909     2.44   0.022     .0050015    .0597476
          5  |   .0347929   .0159926     2.18   0.039     .0018554    .0677304
          6  |   .0510396   .0266663     1.91   0.067    -.0038806    .1059598
          7  |   .0697584   .0282422     2.47   0.021     .0115924    .1279244
          8  |   .0700207    .029015     2.41   0.023     .0102631    .1297783
          9  |   .0703653   .0299587     2.35   0.027     .0086641    .1320664
         10  |   .0779684   .0336205     2.32   0.029     .0087258     .147211
             |
  revny#year |
       1  0  |   .0081374   .0055621     1.46   0.156    -.0033179    .0195927
       1  1  |   .0058758   .0030293     1.94   0.064    -.0003631    .0121148
       1  3  |   .0498794   .0169558     2.94   0.007     .0149584    .0848005
       1  4  |   .1001978   .0232368     4.31   0.000     .0523407    .1480549
       1  5  |   .0737247   .0290761     2.54   0.018     .0138413    .1336081
       1  6  |   .0677111   .0306413     2.21   0.037      .004604    .1308181
       1  7  |   .0427851   .0377622     1.13   0.268    -.0349875    .1205578
       1  8  |   .0463154   .0378309     1.22   0.232    -.0315988    .1242295
       1  9  |   .0597764   .0343734     1.74   0.094    -.0110168    .1305697
       1 10  |   .0424315    .038662     1.10   0.283    -.0371943    .1220574
             |
       _cons |   .5382806   .0158679    33.92   0.000     .5056001    .5709611
-------------+----------------------------------------------------------------
     sigma_u |  .20673311
     sigma_e |  .08425599
         rho |  .85755606   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .5308917   .0173963    30.52   0.000     .4967955    .5649879
       0  1  |   .5292548     .01735    30.50   0.000     .4952494    .5632602
       0  2  |   .5382806   .0158679    33.92   0.000     .5071801     .569381
       0  3  |    .558245   .0090741    61.52   0.000     .5404601    .5760298
       0  4  |   .5706551   .0078616    72.59   0.000     .5552467    .5860635
       0  5  |   .5730735   .0090554    63.29   0.000     .5553252    .5908217
       0  6  |   .5893202    .016775    35.13   0.000     .5564418    .6221985
       0  7  |    .608039   .0191141    31.81   0.000      .570576     .645502
       0  8  |   .6083013   .0199276    30.53   0.000      .569244    .6473586
       0  9  |   .6086459   .0199332    30.53   0.000     .5695775    .6477142
       0 10  |   .6162489   .0248175    24.83   0.000     .5676075    .6648904
       1  0  |   .5390291   .0166342    32.40   0.000     .5064266    .5716316
       1  1  |   .5351307   .0161306    33.17   0.000     .5035154     .566746
       1  2  |   .5382806   .0158679    33.92   0.000     .5071801     .569381
       1  3  |   .6081244   .0178092    34.15   0.000      .573219    .6430298
       1  4  |   .6708529   .0175467    38.23   0.000      .636462    .7052438
       1  5  |   .6467982    .021984    29.42   0.000     .6037103     .689886
       1  6  |   .6570313   .0226395    29.02   0.000     .6126586    .7014039
       1  7  |   .6508241   .0227489    28.61   0.000     .6062371    .6954111
       1  8  |   .6546166    .021999    29.76   0.000     .6114995    .6977338
       1  9  |   .6684223   .0206146    32.42   0.000     .6280183    .7088262
       1 10  |   .6586805   .0234325    28.11   0.000     .6127536    .7046074
------------------------------------------------------------------------------

. 
. * Women's participation in civil society
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "v2x_gencs"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.004904   .0029678    -1.65   0.145    -.0120217    .0022136
          1  |  -.0018561   .0038265    -0.49   0.643    -.0110334    .0073211
          3  |    .035431   .0252095     1.41   0.206    -.0250294    .0958914
          4  |   .0464623   .0273935     1.70   0.137    -.0192361    .1121607
          5  |    .047011     .02789     1.69   0.139    -.0198783    .1139003
          6  |   .0464246   .0279288     1.66   0.143    -.0205576    .1134068
          7  |    .051272    .027683     1.85   0.109    -.0151209    .1176648
          8  |   .0422877   .0279493     1.51   0.177    -.0247438    .1093193
          9  |   .0445354   .0283639     1.57   0.163    -.0234904    .1125612
         10  |   .0464458   .0276292     1.68   0.140     -.019818    .1127096
             |
  revny#year |
       1  0  |   .0049973    .002735     1.83   0.113    -.0015621    .0115568
       1  1  |   .0021825   .0036523     0.60   0.570     -.006577     .010942
       1  3  |   .0515096   .0549588     0.94   0.382    -.0802994    .1833187
       1  4  |     .08486   .0831254     1.02   0.344    -.1145016    .2842217
       1  5  |   .0982404   .0822209     1.19   0.274    -.0989519    .2954328
       1  6  |   .1034701   .0836388     1.24   0.259    -.0971228    .3040631
       1  7  |   .0976916   .0846869     1.15   0.289    -.1054149     .300798
       1  8  |   .1097128   .0881019     1.25   0.256    -.1015842    .3210097
       1  9  |   .1051689   .0872609     1.21   0.270    -.1041111    .3144489
       1 10  |   .0996351   .0866415     1.15   0.290    -.1081593    .3074295
             |
       _cons |   .2889726   .0380118     7.60   0.000      .197808    .3801372
-------------+----------------------------------------------------------------
     sigma_u |  .17128259
     sigma_e |  .09500094
         rho |  .76474204   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .2840686   .0371397     7.65   0.000     .1949956    .3731415
          2  |   .2871165   .0382027     7.52   0.000      .195494     .378739
          3  |   .2889726   .0380118     7.60   0.000      .197808    .3801372
          4  |   .3244036    .025508    12.72   0.000     .2632271      .38558
          5  |   .3354349   .0248885    13.48   0.000     .2757442    .3951256
          6  |   .3359836   .0267095    12.58   0.000     .2719255    .4000417
          7  |   .3353972   .0270504    12.40   0.000     .2705216    .4002728
          8  |   .3402446   .0278327    12.22   0.000     .2734926    .4069965
          9  |   .3312603   .0331504     9.99   0.000     .2517549    .4107657
         10  |    .333508   .0342409     9.74   0.000     .2513873    .4156286
         11  |   .3354184   .0334287    10.03   0.000     .2552456    .4155912
         12  |   .2890659   .0372636     7.76   0.000     .1996956    .3784362
         13  |    .289299   .0372798     7.76   0.000     .1998898    .3787081
         14  |   .2889726   .0380118     7.60   0.000      .197808    .3801372
         15  |   .3759132   .0439933     8.54   0.000      .270403    .4814234
         16  |   .4202949    .060605     6.93   0.000     .2749446    .5656453
         17  |   .4342241   .0573507     7.57   0.000     .2966786    .5717695
         18  |   .4388673   .0582626     7.53   0.000     .2991347       .5786
         19  |   .4379361   .0582867     7.51   0.000     .2981458    .5777264
         20  |   .4409731   .0562856     7.83   0.000      .305982    .5759641
         21  |   .4386769   .0547429     8.01   0.000     .3073856    .5699682
         22  |   .4350535   .0548787     7.93   0.000     .3034366    .5666704
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2397
                                                Largest FMI       =     0.0813
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.32
                                                        avg       =      22.95
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.0)   =       3.71
Within VCE type:       Robust                   Prob > F          =     0.0018

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0109041   .0056933    -1.92   0.068    -.0226756    .0008673
          1  |  -.0049749   .0042537    -1.17   0.254    -.0137698      .00382
          3  |   .0286774   .0110465     2.60   0.016     .0058375    .0515173
          4  |   .0455418   .0145614     3.13   0.005     .0154346    .0756489
          5  |   .0445189    .015914     2.80   0.010      .011615    .0774228
          6  |   .0453181   .0169594     2.67   0.014     .0102512     .080385
          7  |   .0435577   .0176027     2.47   0.021      .007142    .0799733
          8  |   .0413264   .0167778     2.46   0.022     .0066167    .0760361
          9  |   .0509173   .0174361     2.92   0.008     .0148132    .0870215
         10  |   .0557424   .0203294     2.74   0.012     .0136356    .0978491
             |
  revny#year |
       1  0  |   .0016324   .0071432     0.23   0.821    -.0131369    .0164017
       1  1  |   .0012472   .0046777     0.27   0.792    -.0084244    .0109189
       1  3  |   .0353522    .017517     2.02   0.055    -.0008659    .0715704
       1  4  |   .0834851   .0239985     3.48   0.002     .0338659    .1331043
       1  5  |   .0902506   .0271433     3.32   0.003     .0341263     .146375
       1  6  |   .0824281   .0266517     3.09   0.005     .0273105    .1375457
       1  7  |   .0889997   .0270811     3.29   0.003     .0329522    .1450473
       1  8  |   .0875359   .0257798     3.40   0.003     .0341724    .1408994
       1  9  |   .0809553   .0276643     2.93   0.008       .02365    .1382606
       1 10  |   .0850662   .0315636     2.70   0.013     .0194865    .1506458
             |
       _cons |   .5343431   .0125235    42.67   0.000     .5084495    .5602367
-------------+----------------------------------------------------------------
     sigma_u |  .21555694
     sigma_e |  .06794699
         rho |  .90961923   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     3.0322
                                                Largest FMI       =     0.1082
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.57
                                                        avg       =      22.77
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |    .523439   .0148136    35.34   0.000     .4928103    .5540676
          2  |   .5293682    .013874    38.16   0.000     .5006824    .5580541
          3  |   .5343431   .0125235    42.67   0.000     .5084495    .5602367
          4  |   .5630205   .0099326    56.68   0.000     .5424838    .5835572
          5  |   .5798849   .0120611    48.08   0.000     .5549474    .6048223
          6  |    .578862    .011819    48.98   0.000      .554425    .6032989
          7  |   .5796612   .0124583    46.53   0.000        .5539    .6054223
          8  |   .5779008   .0121973    47.38   0.000     .5526512    .6031503
          9  |   .5756695   .0102772    56.01   0.000     .5543859    .5969531
         10  |   .5852604   .0119608    48.93   0.000     .5604454    .6100755
         11  |   .5900854   .0165257    35.71   0.000     .5558217    .6243492
         12  |   .5250714   .0149269    35.18   0.000     .4942085    .5559342
         13  |   .5306155   .0130769    40.58   0.000     .5035776    .5576534
         14  |   .5343431   .0125235    42.67   0.000     .5084495    .5602367
         15  |   .5983727   .0140848    42.48   0.000     .5692509    .6274945
         16  |     .66337   .0148196    44.76   0.000     .6327289     .694011
         17  |   .6691126   .0175747    38.07   0.000     .6327707    .7054545
         18  |   .6620893   .0179673    36.85   0.000     .6249271    .6992514
         19  |   .6669005   .0186174    35.82   0.000     .6283249    .7054762
         20  |   .6632054   .0196342    33.78   0.000     .6225215    .7038893
         21  |   .6662157   .0206749    32.22   0.000     .6232974    .7091341
         22  |   .6751516    .021933    30.78   0.000     .6294817    .7208216
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg v2x_gencs i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.2285                         Obs per group: min =        11
       between = 0.0077                                        avg =      11.0
       overall = 0.0373                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.0578                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.004904   .0029678    -1.65   0.137    -.0117477    .0019397
          1  |  -.0018561   .0038265    -0.49   0.641    -.0106801    .0069679
          3  |    .035431   .0252095     1.41   0.198    -.0227021    .0935641
          4  |   .0464623   .0273935     1.70   0.128    -.0167071    .1096317
          5  |    .047011     .02789     1.69   0.130    -.0173035    .1113255
          6  |   .0464246   .0279288     1.66   0.135    -.0179792    .1108284
          7  |    .051272    .027683     1.85   0.101    -.0125652    .1151091
          8  |   .0422877   .0279493     1.51   0.169    -.0221636     .106739
          9  |   .0445354   .0283639     1.57   0.155    -.0208719    .1099426
         10  |   .0464458   .0276292     1.68   0.131    -.0172673    .1101589
             |
  revny#year |
       1  0  |   .0049973    .002735     1.83   0.105    -.0013096    .0113043
       1  1  |   .0021825   .0036523     0.60   0.567    -.0062398    .0106048
       1  3  |   .0515096   .0549588     0.94   0.376    -.0752257    .1782449
       1  4  |     .08486   .0831254     1.02   0.337    -.1068275    .2765476
       1  5  |   .0982404   .0822209     1.19   0.266    -.0913614    .2878423
       1  6  |   .1034701   .0836388     1.24   0.251    -.0894014    .2963417
       1  7  |   .0976916   .0846869     1.15   0.282    -.0975967    .2929798
       1  8  |   .1097128   .0881019     1.25   0.248    -.0934507    .3128762
       1  9  |   .1051689   .0872609     1.21   0.263    -.0960552     .306393
       1 10  |   .0996351   .0866415     1.15   0.283    -.1001606    .2994308
             |
       _cons |   .2889726   .0380118     7.60   0.000     .2013172     .376628
-------------+----------------------------------------------------------------
     sigma_u |  .17128259
     sigma_e |  .09500094
         rho |  .76474204   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .2840686   .0371397     7.65   0.000     .2112761     .356861
       0  1  |   .2871165   .0382027     7.52   0.000     .2122405    .3619924
       0  2  |   .2889726   .0380118     7.60   0.000     .2144708    .3634744
       0  3  |   .3244036    .025508    12.72   0.000     .2744088    .3743984
       0  4  |   .3354349   .0248885    13.48   0.000     .2866543    .3842155
       0  5  |   .3359836   .0267095    12.58   0.000     .2836339    .3883333
       0  6  |   .3353972   .0270504    12.40   0.000     .2823794     .388415
       0  7  |   .3402446   .0278327    12.22   0.000     .2856934    .3947957
       0  8  |   .3312603   .0331504     9.99   0.000     .2662867    .3962339
       0  9  |    .333508   .0342409     9.74   0.000     .2663971    .4006188
       0 10  |   .3354184   .0334287    10.03   0.000     .2698994    .4009374
       1  0  |   .2890659   .0372636     7.76   0.000     .2160305    .3621013
       1  1  |    .289299   .0372798     7.76   0.000     .2162318    .3623661
       1  2  |   .2889726   .0380118     7.60   0.000     .2144708    .3634744
       1  3  |   .3759132   .0439933     8.54   0.000     .2896879    .4621385
       1  4  |   .4202949    .060605     6.93   0.000     .3015114    .5390785
       1  5  |   .4342241   .0573507     7.57   0.000     .3218188    .5466293
       1  6  |   .4388673   .0582626     7.53   0.000     .3246747      .55306
       1  7  |   .4379361   .0582867     7.51   0.000     .3236964    .5521759
       1  8  |   .4409731   .0562856     7.83   0.000     .3306554    .5512908
       1  9  |   .4386769   .0547429     8.01   0.000     .3313827    .5459711
       1 10  |   .4350535   .0548787     7.93   0.000     .3274932    .5426138
------------------------------------------------------------------------------

. xtreg v2x_gencs i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.3690                         Obs per group: min =         5
       between = 0.0161                                        avg =      10.4
       overall = 0.0465                                        max =        11

                                                F(20,25)           =      9.15
corr(u_i, Xb)  = 0.0153                         Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0109125   .0056997    -1.91   0.067    -.0226512    .0008261
          1  |  -.0049836   .0042582    -1.17   0.253    -.0137536    .0037864
          3  |   .0286994   .0110599     2.59   0.016     .0059212    .0514776
          4  |   .0455804   .0145764     3.13   0.004     .0155597    .0756012
          5  |   .0445573   .0159314     2.80   0.010      .011746    .0773686
          6  |   .0456156   .0170468     2.68   0.013     .0105071    .0807242
          7  |    .049204    .016818     2.93   0.007     .0145666    .0838414
          8  |   .0465571   .0158921     2.93   0.007     .0138268    .0792875
          9  |   .0624005   .0172996     3.61   0.001     .0267712    .0980297
         10  |   .0690106   .0216808     3.18   0.004     .0243582    .1136631
             |
  revny#year |
       1  0  |   .0016408   .0071512     0.23   0.820    -.0130874     .016369
       1  1  |    .001256   .0046824     0.27   0.791    -.0083877    .0108996
       1  3  |   .0353302   .0175317     2.02   0.055     -.000777    .0714375
       1  4  |   .0834465   .0240197     3.47   0.002     .0339769     .132916
       1  5  |   .0828936   .0281075     2.95   0.007      .025005    .1407822
       1  6  |   .0745563   .0275833     2.70   0.012     .0177475    .1313651
       1  7  |   .0787511   .0297163     2.65   0.014     .0175492     .139953
       1  8  |   .0775559   .0288412     2.69   0.013     .0181563    .1369554
       1  9  |   .0765295   .0300095     2.55   0.017     .0147238    .1383353
       1 10  |   .0793893   .0335838     2.36   0.026     .0102222    .1485563
             |
       _cons |   .5262094   .0107693    48.86   0.000     .5040296    .5483892
-------------+----------------------------------------------------------------
     sigma_u |  .21655675
     sigma_e |   .0639218
         rho |  .91985543   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .5152969   .0130848    39.38   0.000     .4896511    .5409426
       0  1  |   .5212258   .0121776    42.80   0.000     .4973581    .5450935
       0  2  |   .5262094   .0107693    48.86   0.000      .505102    .5473168
       0  3  |   .5549088    .008981    61.79   0.000     .5373065    .5725111
       0  4  |   .5717898   .0114144    50.09   0.000     .5494179    .5941617
       0  5  |   .5707667   .0119295    47.84   0.000     .5473853    .5941481
       0  6  |    .571825   .0128872    44.37   0.000     .5465665    .5970835
       0  7  |   .5754134   .0125458    45.86   0.000      .550824    .6000028
       0  8  |   .5727665   .0110564    51.80   0.000     .5510964    .5944367
       0  9  |   .5886099   .0138434    42.52   0.000     .5614773    .6157424
       0 10  |     .59522   .0197065    30.20   0.000      .556596    .6338441
       1  0  |   .5169377   .0132156    39.12   0.000     .4910357    .5428397
       1  1  |   .5224818    .011291    46.27   0.000     .5003518    .5446118
       1  2  |   .5262094   .0107693    48.86   0.000      .505102    .5473168
       1  3  |    .590239   .0125355    47.09   0.000     .5656698    .6148082
       1  4  |   .6552363   .0161622    40.54   0.000      .623559    .6869136
       1  5  |   .6536603   .0188073    34.76   0.000     .6167987     .690522
       1  6  |   .6463813   .0195019    33.14   0.000     .6081584    .6846043
       1  7  |   .6541645   .0196349    33.32   0.000     .6156808    .6926483
       1  8  |   .6503224   .0214993    30.25   0.000     .6081845    .6924603
       1  9  |   .6651394   .0189041    35.18   0.000      .628088    .7021908
       1 10  |   .6746093   .0185541    36.36   0.000      .638244    .7109746
------------------------------------------------------------------------------

. 
. * Women's political participation
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "v2x_genpp"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1157
                                                Largest FMI       =     0.1116
                                                Complete DF       =          8
                                                DF:     min       =       6.08
                                                        avg       =       6.49
DF adjustment:   Small sample                           max       =       6.55
                                                F(   9,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0069723   .0075921    -0.92   0.391    -.0252158    .0112711
          1  |    .000371   .0027124     0.14   0.896    -.0062442    .0069862
          3  |   .0527563   .0210103     2.51   0.043     .0023543    .1031583
          4  |   .0479642   .0200457     2.39   0.050    -.0001251    .0960535
          5  |   .0730182   .0254266     2.87   0.026     .0120266    .1340099
          6  |   .0635809   .0261913     2.43   0.048     .0007558    .1264061
          7  |   .0574422   .0266707     2.15   0.071    -.0065327    .1214171
          8  |   .0621547   .0264495     2.35   0.054    -.0012898    .1255991
          9  |   .0946556   .0400363     2.36   0.052    -.0013709     .190682
         10  |   .0950791   .0400464     2.37   0.052    -.0009716    .1911299
             |
  revny#year |
       1  0  |   .0089721   .0076652     1.17   0.283    -.0094464    .0273906
       1  1  |   -.000138   .0027271    -0.05   0.961    -.0067878    .0065117
       1  3  |   .0056104   .0804938     0.07   0.947    -.1874432    .1986639
       1  4  |   .0499637   .0729183     0.69   0.517    -.1249217     .224849
       1  5  |    .059858   .0806505     0.74   0.484    -.1335712    .2532872
       1  6  |   .0689557   .0790909     0.87   0.414    -.1207331    .2586445
       1  7  |   .0750944   .0782453     0.96   0.371    -.1125665    .2627554
       1  8  |   .0972949   .0927947     1.05   0.332    -.1252597    .3198494
       1  9  |   .0715731   .0883736     0.81   0.446    -.1403783    .2835245
       1 10  |   .0979185   .0950866     1.03   0.340    -.1301326    .3259696
             |
       _cons |   .2903795    .035198     8.25   0.000     .2059614    .3747975
-------------+----------------------------------------------------------------
     sigma_u |  .21019272
     sigma_e |  .10594671
         rho |  .79740879   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0650
                                                Largest FMI       =     0.0340
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.54
                                                        avg       =       6.54
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .2834071   .0358944     7.90   0.000      .197319    .3694953
          2  |   .2907504    .035322     8.23   0.000      .206035    .3754658
          3  |   .2903795    .035198     8.25   0.000     .2059614    .3747975
          4  |   .3431358    .030865    11.12   0.000     .2691094    .4171622
          5  |   .3383437   .0284197    11.91   0.000     .2701818    .4065055
          6  |   .3633977    .032567    11.16   0.000     .2852895    .4415059
          7  |   .3539604   .0314937    11.24   0.000     .2784263    .4294944
          8  |   .3478217   .0307323    11.32   0.000     .2741135    .4215298
          9  |   .3525341   .0307031    11.48   0.000      .278896    .4261723
         10  |    .385035   .0296238    13.00   0.000     .3139853    .4560847
         11  |   .3854586    .029684    12.99   0.000     .3142645    .4566527
         12  |   .2923792   .0334021     8.75   0.000     .2122683    .3724902
         13  |   .2906124   .0349874     8.31   0.000     .2066994    .3745253
         14  |   .2903795    .035198     8.25   0.000     .2059614    .3747975
         15  |   .3487461   .0619149     5.63   0.001     .2002532    .4972391
         16  |   .3883073   .0496768     7.82   0.000      .269165    .5074496
         17  |   .4232557   .0491487     8.61   0.000     .3053799    .5411316
         18  |   .4229161   .0489293     8.64   0.000     .3055666    .5402656
         19  |   .4229161   .0489293     8.64   0.000     .3055666    .5402656
         20  |    .449829   .0639773     7.03   0.000     .2963897    .6032682
         21  |   .4566081   .0646883     7.06   0.000     .3014636    .6117527
         22  |   .4833771   .0739079     6.54   0.000     .3061211    .6606331
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        924

Group variable: diffid                          Number of groups  =         84
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2510
                                                Largest FMI       =     0.1937
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      18.05
                                                        avg       =      22.53
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.0)   =       7.97
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0106759   .0051387    -2.08   0.049    -.0213006   -.0000511
          1  |  -.0072245   .0045158    -1.60   0.123    -.0165615    .0021124
          3  |   .0414533   .0183944     2.25   0.034     .0034211    .0794856
          4  |   .0489586   .0203894     2.40   0.025     .0068014    .0911158
          5  |   .0485324   .0233874     2.08   0.049     .0001765    .0968883
          6  |    .056913   .0219603     2.59   0.016     .0115063    .1023198
          7  |   .0570015   .0261781     2.18   0.040     .0028578    .1111453
          8  |   .0377407   .0274754     1.37   0.183     -.019107    .0945884
          9  |    .068059   .0242727     2.80   0.010     .0176871    .1184309
         10  |   .0733022   .0256066     2.86   0.009     .0200485    .1265559
             |
  revny#year |
       1  0  |  -.0060132   .0107217    -0.56   0.580    -.0281814     .016155
       1  1  |  -.0045149   .0127723    -0.35   0.727    -.0309229    .0218932
       1  3  |  -.0671006   .0421347    -1.59   0.125    -.1542183    .0200171
       1  4  |   .0039078   .0372706     0.10   0.917     -.073153    .0809686
       1  5  |   .0174919   .0386357     0.45   0.655    -.0623992    .0973829
       1  6  |   .0093821   .0410859     0.23   0.821      -.07559    .0943542
       1  7  |   .0121548   .0398154     0.31   0.763    -.0702851    .0945947
       1  8  |   .0368994   .0408671     0.90   0.376    -.0477728    .1215716
       1  9  |   .0240632   .0332585     0.72   0.478     -.045396    .0935224
       1 10  |   .0438837   .0322892     1.36   0.191    -.0239388    .1117062
             |
       _cons |   .6404724    .011013    58.16   0.000     .6177018    .6632429
-------------+----------------------------------------------------------------
     sigma_u |  .22808215
     sigma_e |  .08378856
         rho |   .8810927   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        924
                                                Average RVI       =     1.8656
                                                Largest FMI       =     0.2382
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      16.73
                                                        avg       =      22.13
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .6297965   .0113424    55.53   0.000     .6063449    .6532481
          2  |   .6332478   .0112698    56.19   0.000     .6099463    .6565493
          3  |   .6404724    .011013    58.16   0.000     .6177018    .6632429
          4  |   .6819257   .0179091    38.08   0.000     .6448967    .7189547
          5  |    .689431   .0175768    39.22   0.000     .6530891    .7257728
          6  |   .6890047   .0197162    34.95   0.000     .6482395      .72977
          7  |   .6973854   .0189325    36.84   0.000     .6582387    .7365321
          8  |   .6974739   .0215322    32.39   0.000     .6529319    .7420159
          9  |   .6782131    .022433    30.23   0.000     .6317812    .7246449
         10  |   .7085314   .0204473    34.65   0.000     .6660181    .7510446
         11  |   .7137746    .021649    32.97   0.000     .6686108    .7589383
         12  |   .6237833   .0145296    42.93   0.000     .5937419    .6538247
         13  |    .628733   .0149551    42.04   0.000     .5978118    .6596542
         14  |   .6404724    .011013    58.16   0.000     .6177018    .6632429
         15  |   .6148251   .0320803    19.17   0.000     .5484958    .6811544
         16  |   .6933387   .0215039    32.24   0.000     .6488772    .7378003
         17  |   .7064966   .0217464    32.49   0.000       .66152    .7514732
         18  |   .7067675   .0243558    29.02   0.000     .6563673    .7571677
         19  |   .7096287   .0227304    31.22   0.000     .6624454     .756812
         20  |   .7151125   .0235354    30.38   0.000      .666077    .7641479
         21  |   .7325945   .0200446    36.55   0.000     .6902528    .7749363
         22  |   .7576582     .02053    36.91   0.000     .7143142    .8010023
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 58 matched cases

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.2 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg v2x_genpp i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       373
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.2337                         Obs per group: min =        10
       between = 0.0123                                        avg =      11.0
       overall = 0.0505                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.0056                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0042834   .0050877    -0.84   0.424    -.0160157     .007449
          1  |   .0030599   .0027897     1.10   0.305    -.0033732    .0094931
          3  |   .0554453   .0229665     2.41   0.042     .0024845     .108406
          4  |   .0506532   .0219227     2.31   0.050     .0000993     .101207
          5  |   .0757072   .0269042     2.81   0.023     .0136661    .1377483
          6  |   .0662699   .0277611     2.39   0.044     .0022527     .130287
          7  |   .0601311   .0283059     2.12   0.066    -.0051424    .1254047
          8  |   .0648436   .0282329     2.30   0.051    -.0002616    .1299489
          9  |   .0973445   .0411438     2.37   0.046     .0024667    .1922223
         10  |   .0977681   .0411504     2.38   0.045     .0028752     .192661
             |
  revny#year |
       1  0  |   .0062831   .0051285     1.23   0.255    -.0055432    .0181095
       1  1  |   -.002827   .0027895    -1.01   0.341    -.0092596    .0036056
       1  3  |   .0029214   .0803521     0.04   0.972    -.1823709    .1882137
       1  4  |   .0472747   .0736003     0.64   0.539    -.1224478    .2169973
       1  5  |   .0571691   .0814941     0.70   0.503    -.1307566    .2450947
       1  6  |   .0662668   .0799975     0.83   0.431    -.1182077    .2507413
       1  7  |   .0724055   .0791943     0.91   0.387    -.1102169    .2550279
       1  8  |   .0946059   .0937921     1.01   0.343     -.121679    .3108908
       1  9  |   .0688842   .0894112     0.77   0.463    -.1372984    .2750667
       1 10  |   .0952295   .0961773     0.99   0.351    -.1265556    .3170147
             |
       _cons |   .2889258   .0353261     8.18   0.000     .2074637     .370388
-------------+----------------------------------------------------------------
     sigma_u |  .21011377
     sigma_e |  .10597664
         rho |  .79719605   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        373
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .2846425   .0356031     7.99   0.000     .2148617    .3544232
       0  1  |   .2919858   .0352755     8.28   0.000     .2228471    .3611245
       0  2  |   .2889258   .0353261     8.18   0.000     .2196879    .3581638
       0  3  |   .3443711   .0315437    10.92   0.000     .2825466    .4061957
       0  4  |    .339579   .0290849    11.68   0.000     .2825737    .3965843
       0  5  |    .364633   .0331376    11.00   0.000     .2996846    .4295815
       0  6  |   .3551957   .0321436    11.05   0.000     .2921955    .4181959
       0  7  |    .349057   .0314415    11.10   0.000     .2874328    .4106811
       0  8  |   .3537695   .0314792    11.24   0.000     .2920714    .4154676
       0  9  |   .3862704   .0303377    12.73   0.000     .3268097    .4457311
       0 10  |   .3866939   .0303941    12.72   0.000     .3271226    .4462652
       1  0  |   .2909256   .0335296     8.68   0.000     .2252088    .3566425
       1  1  |   .2891588   .0351154     8.23   0.000     .2203338    .3579838
       1  2  |   .2889258   .0353261     8.18   0.000     .2196879    .3581638
       1  3  |   .3472925   .0615341     5.64   0.000     .2266879    .4678972
       1  4  |   .3868537   .0497955     7.77   0.000     .2892564     .484451
       1  5  |   .4218021   .0494409     8.53   0.000     .3248998    .5187044
       1  6  |   .4214625   .0492235     8.56   0.000     .3249862    .5179388
       1  7  |   .4214625   .0492235     8.56   0.000     .3249862    .5179388
       1  8  |   .4483754   .0643023     6.97   0.000     .3223451    .5744056
       1  9  |   .4551545   .0650316     7.00   0.000      .327695    .5826141
       1 10  |   .4819235   .0742837     6.49   0.000       .33633     .627517
------------------------------------------------------------------------------

. xtreg v2x_genpp i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       882
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.1997                         Obs per group: min =         5
       between = 0.0485                                        avg =      10.3
       overall = 0.0106                                        max =        11

                                                F(20,25)           =     13.64
corr(u_i, Xb)  = -0.0401                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0109174   .0052448    -2.08   0.048    -.0217193   -.0001156
          1  |  -.0074126    .004613    -1.61   0.121    -.0169132     .002088
          3  |   .0434078   .0184673     2.35   0.027     .0053736    .0814419
          4  |   .0493101   .0208599     2.36   0.026     .0063483    .0922718
          5  |   .0487922   .0239157     2.04   0.052    -.0004632    .0980475
          6  |   .0575126   .0225515     2.55   0.017      .011067    .1039582
          7  |   .0562539   .0274857     2.05   0.051     -.000354    .1128618
          8  |   .0350392   .0287684     1.22   0.235    -.0242103    .0942888
          9  |   .0580559   .0215431     2.69   0.012      .013687    .1024248
         10  |    .059032   .0225555     2.62   0.015      .012578     .105486
             |
  revny#year |
       1  0  |  -.0057716   .0107097    -0.54   0.595    -.0278285    .0162854
       1  1  |  -.0043268   .0128311    -0.34   0.739    -.0307529    .0220994
       1  3  |   -.069055   .0422396    -1.63   0.115    -.1560491     .017939
       1  4  |   .0035563   .0376172     0.09   0.925    -.0739177    .0810303
       1  5  |    .019508   .0398893     0.49   0.629    -.0626455    .1016615
       1  6  |   .0113544    .042278     0.27   0.790    -.0757187    .0984275
       1  7  |   .0236832   .0423826     0.56   0.581    -.0636054    .1109717
       1  8  |   .0488988   .0431022     1.13   0.267    -.0398719    .1376695
       1  9  |   .0497483    .027469     1.81   0.082    -.0068251    .1063217
       1 10  |   .0589472   .0307922     1.91   0.067    -.0044705     .122365
             |
       _cons |    .631881   .0106971    59.07   0.000     .6098499    .6539122
-------------+----------------------------------------------------------------
     sigma_u |  .22784693
     sigma_e |  .08262757
         rho |  .88377364   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        882
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .6209636   .0108976    56.98   0.000     .5996047    .6423226
       0  1  |   .6244684   .0109302    57.13   0.000     .6030456    .6458912
       0  2  |    .631881   .0106971    59.07   0.000     .6109151     .652847
       0  3  |   .6752888   .0185086    36.49   0.000     .6390126     .711565
       0  4  |   .6811911   .0184995    36.82   0.000     .6449327    .7174496
       0  5  |   .6806732   .0209614    32.47   0.000     .6395897    .7217567
       0  6  |   .6893936   .0200926    34.31   0.000     .6500128    .7287745
       0  7  |   .6881349    .023352    29.47   0.000     .6423658    .7339041
       0  8  |   .6669203   .0239339    27.87   0.000     .6200108    .7138298
       0  9  |   .6899369   .0172183    40.07   0.000     .6561898    .7236841
       0 10  |    .690913   .0175902    39.28   0.000     .6564368    .7253893
       1  0  |    .615192   .0138019    44.57   0.000     .5881408    .6422432
       1  1  |   .6201417   .0142729    43.45   0.000     .5921673    .6481161
       1  2  |    .631881   .0106971    59.07   0.000     .6109151     .652847
       1  3  |   .6062338   .0315365    19.22   0.000     .5444234    .6680442
       1  4  |   .6847474   .0211677    32.35   0.000     .6432595    .7262354
       1  5  |   .7001812   .0221789    31.57   0.000     .6567114     .743651
       1  6  |    .700748   .0245469    28.55   0.000     .6526369    .7488591
       1  7  |   .7118181   .0230669    30.86   0.000     .6666079    .7570283
       1  8  |   .7158191   .0233385    30.67   0.000     .6700764    .7615618
       1  9  |   .7396852   .0184104    40.18   0.000     .7036015     .775769
       1 10  |   .7498603   .0231823    32.35   0.000     .7044237    .7952969
------------------------------------------------------------------------------

. 
. * Successful social vs, successful urban civic compared directly 
. * Women's political participation
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "v2x_genpp"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        473

Group variable: revid                           Number of groups  =         43
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1671
                                                Largest FMI       =     0.1028
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      35.04
                                                        avg       =      38.98
                                                        max       =      40.13
Model F test:       Equal FMI                   F(  20,   39.2)   =       1.96
Within VCE type:       Robust                   Prob > F          =     0.0349

                                (Within VCE adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |  -.0148307   .0111662    -1.33   0.192    -.0373961    .0077347
          1  |  -.0105094   .0103061    -1.02   0.314    -.0313366    .0103178
          3  |  -.0382809   .0309053    -1.24   0.223    -.1007364    .0241745
          4  |   .0355843   .0271463     1.31   0.197    -.0192747    .0904434
          5  |   .0511974   .0280898     1.82   0.076    -.0055911    .1079858
          6  |   .0516352   .0301991     1.71   0.095    -.0094562    .1127266
          7  |   .0536079   .0290442     1.85   0.073    -.0051643    .1123802
          8  |   .0664717   .0277736     2.39   0.022     .0101567    .1227867
          9  |   .0783379   .0275053     2.85   0.007     .0225847    .1340911
         10  |   .0868203    .030313     2.86   0.007      .025284    .1483566
             |
leftist#year |
       1  0  |   .0070356   .0140055     0.50   0.619    -.0213781    .0354493
       1  1  |   .0039145   .0118165     0.33   0.742    -.0200009    .0278299
       1  3  |   .1168714   .0675508     1.73   0.091    -.0196398    .2533825
       1  4  |   .1007388   .0657209     1.53   0.133    -.0320742    .2335519
       1  5  |   .1696188   .0747674     2.27   0.029     .0185158    .3207219
       1  6  |   .1689627   .0754984     2.24   0.031     .0163682    .3215572
       1  7  |   .1727442   .0761593     2.27   0.029      .018811    .3266773
       1  8  |   .1569433   .0745713     2.10   0.042     .0061926    .3076939
       1  9  |   .1484431   .0747837     1.98   0.054    -.0027317    .2996178
       1 10  |   .1639372   .0783738     2.09   0.043     .0054788    .3223956
             |
       _cons |   .5361023   .0194335    27.59   0.000     .4968298    .5753749
-------------+----------------------------------------------------------------
     sigma_u |  .27397923
     sigma_e |  .10783577
         rho |  .86586541   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        473
                                                Average RVI       =     2.3913
                                                Largest FMI       =     0.1302
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      33.40
                                                        avg       =      38.97
Within VCE type: Delta-method                           max       =      40.13

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5212717   .0185765    28.06   0.000      .483731    .5588124
          2  |    .525593    .018989    27.68   0.000     .4872187    .5639673
          3  |   .5361023   .0194335    27.59   0.000     .4968298    .5753749
          4  |   .4978214    .028934    17.21   0.000     .4393497    .5562931
          5  |   .5716867    .021808    26.21   0.000     .5276157    .6157577
          6  |   .5872997   .0223029    26.33   0.000     .5421987    .6324007
          7  |   .5877376   .0238893    24.60   0.000     .5393742    .6361009
          8  |   .5897103   .0231073    25.52   0.000     .5429063    .6365143
          9  |   .6025741   .0227966    26.43   0.000     .5562415    .6489066
         10  |   .6144403   .0248259    24.75   0.000     .5640713    .6648092
         11  |   .6229226   .0269302    23.13   0.000     .5681573     .677688
         12  |   .5283073    .020934    25.24   0.000     .4859419    .5706727
         13  |   .5295075   .0208572    25.39   0.000     .4873401    .5716748
         14  |   .5361023   .0194335    27.59   0.000     .4968298    .5753749
         15  |   .6146928   .0526863    11.67   0.000     .5082208    .7211648
         16  |   .6724255   .0492355    13.66   0.000     .5729271    .7719239
         17  |   .7569186   .0564704    13.40   0.000     .6427993    .8710378
         18  |   .7567002   .0563839    13.42   0.000      .642756    .8706445
         19  |   .7624545    .057549    13.25   0.000     .6461556    .8787534
         20  |   .7595173    .056302    13.49   0.000     .6457385    .8732962
         21  |   .7628833   .0566685    13.46   0.000     .6483638    .8774029
         22  |   .7868598   .0600309    13.11   0.000     .6655455    .9081742
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         29       67.44       67.44
          1 |         14       32.56      100.00
------------+-----------------------------------
      Total |         43      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 3.2 percent of observations

. * Complete case sample as robustness test
. clear

. use simplediffindifflong.dta, clear

. xtreg v2x_genpp i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        449
Group variable: revid                           Number of groups  =         43

R-sq:                                           Obs per group:
     within  = 0.3200                                         min =          5
     between = 0.2444                                         avg =       10.4
     overall = 0.0029                                         max =         11

                                                F(19,42)          =          .
corr(u_i, Xb)  = -0.3786                        Prob > F          =          .

                                 (Std. Err. adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_genpp |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |  -.0148307   .0111794    -1.33   0.192    -.0373917    .0077304
          1  |  -.0105094   .0103183    -1.02   0.314    -.0313326    .0103138
          3  |  -.0382809    .030942    -1.24   0.223    -.1007244    .0241625
          4  |   .0355843   .0271785     1.31   0.198    -.0192642    .0904329
          5  |   .0524434   .0284305     1.84   0.072    -.0049316    .1098185
          6  |   .0529627   .0300856     1.76   0.086    -.0077525     .113678
          7  |   .0618158   .0292793     2.11   0.041     .0027278    .1209038
          8  |   .0717378   .0273262     2.63   0.012     .0165914    .1268842
          9  |   .0880084   .0266495     3.30   0.002     .0342276    .1417893
         10  |   .0897337   .0318729     2.82   0.007     .0254115    .1540558
             |
leftist#year |
       1  0  |  -.0015529   .0185373    -0.08   0.934    -.0389626    .0358569
       1  1  |  -.0070973   .0180958    -0.39   0.697    -.0436161    .0294214
       1  3  |   .1168714    .067631     1.73   0.091    -.0196135    .2533563
       1  4  |   .1007388   .0657989     1.53   0.133    -.0320487    .2335263
       1  5  |   .1683728   .0749722     2.25   0.030     .0170727    .3196729
       1  6  |   .1676351   .0755284     2.22   0.032     .0152126    .3200577
       1  7  |   .1645363   .0763264     2.16   0.037     .0105033    .3185692
       1  8  |   .1516772   .0744822     2.04   0.048      .001366    .3019884
       1  9  |   .1387726   .0745503     1.86   0.070     -.011676    .2892212
       1 10  |   .1610238   .0790688     2.04   0.048     .0014566     .320591
             |
       _cons |   .5240634   .0198125    26.45   0.000     .4840802    .5640467
-------------+----------------------------------------------------------------
     sigma_u |  .27631729
     sigma_e |  .10808396
         rho |  .86729874   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        449
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   .5092328   .0187734    27.13   0.000     .4724375     .546028
       0  1  |   .5135541   .0191784    26.78   0.000     .4759651     .551143
       0  2  |   .5240634   .0198125    26.45   0.000     .4852317    .5628952
       0  3  |   .4857825   .0293575    16.55   0.000     .4282428    .5433222
       0  4  |   .5596478   .0224103    24.97   0.000     .5157244    .6035712
       0  5  |   .5765069   .0232109    24.84   0.000     .5310143    .6219994
       0  6  |   .5770262    .024181    23.86   0.000     .5296322    .6244201
       0  7  |   .5858793    .023768    24.65   0.000     .5392948    .6324638
       0  8  |   .5958012   .0226652    26.29   0.000     .5513783    .6402241
       0  9  |   .6120719   .0252862    24.21   0.000     .5625119    .6616318
       0 10  |   .6137971   .0279497    21.96   0.000     .5590166    .6685776
       1  0  |   .5076799   .0254036    19.98   0.000     .4578898      .55747
       1  1  |   .5064567   .0258148    19.62   0.000     .4558607    .5570528
       1  2  |   .5240634   .0198125    26.45   0.000     .4852317    .5628952
       1  3  |   .6026539   .0523893    11.50   0.000     .4999728     .705335
       1  4  |   .6603866   .0487316    13.55   0.000     .5648743    .7558988
       1  5  |   .7448796   .0558281    13.34   0.000     .6354585    .8543007
       1  6  |   .7446613   .0557416    13.36   0.000     .6354098    .8539129
       1  7  |   .7504155   .0569065    13.19   0.000     .6388808    .8619502
       1  8  |   .7474784   .0556525    13.43   0.000     .6384016    .8565552
       1  9  |   .7508444   .0560196    13.40   0.000     .6410481    .8606408
       1 10  |   .7748209   .0594472    13.03   0.000     .6583066    .8913352
------------------------------------------------------------------------------

. 
. * Women's participation in civil society
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "v2x_gencs"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        473

Group variable: revid                           Number of groups  =         43
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0809
                                                Largest FMI       =     0.0305
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      38.92
                                                        avg       =      39.89
                                                        max       =      40.13
Model F test:       Equal FMI                   F(  20,   39.7)   =       3.92
Within VCE type:       Robust                   Prob > F          =     0.0001

                                (Within VCE adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   -.009518   .0054608    -1.74   0.089    -.0205536    .0015176
          1  |  -.0041422   .0026184    -1.58   0.122    -.0094337    .0011492
          3  |   .0604157   .0148848     4.06   0.000     .0303355    .0904958
          4  |   .1220105    .022814     5.35   0.000     .0759065    .1681145
          5  |   .1270414   .0257014     4.94   0.000     .0750864    .1789965
          6  |     .12154   .0267596     4.54   0.000     .0674496    .1756305
          7  |   .1271422   .0273355     4.65   0.000     .0718684     .182416
          8  |   .1222662   .0280341     4.36   0.000     .0655703    .1789622
          9  |    .125637   .0279327     4.50   0.000     .0691341    .1821398
         10  |   .1353319   .0286128     4.73   0.000     .0774664    .1931975
             |
leftist#year |
       1  0  |   .0131262   .0071988     1.82   0.076    -.0014216     .027674
       1  1  |   .0079003   .0053672     1.47   0.149    -.0029461    .0187466
       1  3  |   .0306651   .0671945     0.46   0.651    -.1051259    .1664562
       1  4  |    .033618   .0821492     0.41   0.685    -.1323946    .1996307
       1  5  |   .0401936   .0819837     0.49   0.627    -.1254892    .2058765
       1  6  |   .0479899   .0824772     0.58   0.564    -.1186895    .2146693
       1  7  |   .0436299    .082098     0.53   0.598    -.1222892     .209549
       1  8  |   .0545192   .0810594     0.67   0.505    -.1093045    .2183428
       1  9  |   .0495872   .0806438     0.61   0.542    -.1133998    .2125742
       1 10  |   .0371751   .0808187     0.46   0.648    -.1261626    .2005128
             |
       _cons |   .4621137   .0209438    22.06   0.000     .4197892    .5044383
-------------+----------------------------------------------------------------
     sigma_u |  .24857436
     sigma_e |  .10085547
         rho |  .85864814   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        473
                                                Average RVI       =     4.0830
                                                Largest FMI       =     0.0394
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      38.50
                                                        avg       =      39.86
Within VCE type: Delta-method                           max       =      40.13

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .4525957   .0219577    20.61   0.000     .4082222    .4969692
          2  |   .4579715   .0212366    21.57   0.000     .4150551    .5008879
          3  |   .4621137   .0209438    22.06   0.000     .4197892    .5044383
          4  |   .5225294   .0209784    24.91   0.000     .4801349    .5649238
          5  |   .5841242    .021493    27.18   0.000     .5406898    .6275586
          6  |   .5891552   .0227485    25.90   0.000     .5431653    .6351451
          7  |   .5836538   .0233876    24.96   0.000     .5363757    .6309318
          8  |   .5892559   .0237056    24.86   0.000     .5413116    .6372003
          9  |     .58438   .0244166    23.93   0.000     .5349864    .6337736
         10  |   .5877507   .0243937    24.09   0.000     .5383891    .6371123
         11  |   .5974456   .0250195    23.88   0.000     .5468339    .6480574
         12  |   .4657219   .0218673    21.30   0.000      .421531    .5099128
         13  |   .4658717   .0218717    21.30   0.000     .4216719    .5100716
         14  |   .4621137   .0209438    22.06   0.000     .4197892    .5044383
         15  |   .5531945   .0538278    10.28   0.000     .4444156    .6619734
         16  |   .6177423   .0626839     9.85   0.000     .4910665     .744418
         17  |   .6293488   .0615941    10.22   0.000     .5048754    .7538222
         18  |   .6316437   .0617715    10.23   0.000     .5068116    .7564757
         19  |   .6328858   .0611824    10.34   0.000     .5092443    .7565273
         20  |   .6388991    .059848    10.68   0.000     .5179543     .759844
         21  |   .6373379   .0594327    10.72   0.000     .5172323    .7574434
         22  |   .6346208   .0593889    10.69   0.000     .5146037    .7546378
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         29       67.44       67.44
          1 |         14       32.56      100.00
------------+-----------------------------------
      Total |         43      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 2.9 percent of observations

. * Complete case sample as robustness test
. use simplediffindifflong.dta, clear

. xtreg v2x_gencs i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        451
Group variable: revid                           Number of groups  =         43

R-sq:                                           Obs per group:
     within  = 0.3193                                         min =          5
     between = 0.2842                                         avg =       10.5
     overall = 0.0081                                         max =         11

                                                F(20,42)          =       4.40
corr(u_i, Xb)  = -0.1735                        Prob > F          =     0.0000

                                 (Std. Err. adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencs |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   -.009518   .0054668    -1.74   0.089    -.0205503    .0015144
          1  |  -.0041422   .0026212    -1.58   0.122    -.0094321    .0011476
          3  |   .0604157   .0149009     4.05   0.000     .0303444    .0904869
          4  |   .1220105   .0228387     5.34   0.000     .0759201    .1681009
          5  |   .1200089   .0247736     4.84   0.000     .0700138    .1700039
          6  |   .1137562   .0257049     4.43   0.000     .0618815    .1656308
          7  |   .1213146   .0249242     4.87   0.000     .0710155    .1716137
          8  |   .1174894   .0262521     4.48   0.000     .0645104    .1704684
          9  |   .1299279   .0244892     5.31   0.000     .0805068    .1793491
         10  |    .141954   .0249427     5.69   0.000     .0916175    .1922904
             |
leftist#year |
       1  0  |   .0131262   .0072066     1.82   0.076    -.0014173    .0276697
       1  1  |   .0079003    .005373     1.47   0.149    -.0029428    .0187434
       1  3  |   .0306651   .0672673     0.46   0.651    -.1050857     .166416
       1  4  |    .033618   .0822382     0.41   0.685    -.1323454    .1995815
       1  5  |   .0472262   .0817779     0.58   0.567    -.1178083    .2122607
       1  6  |   .0557738   .0822213     0.68   0.501    -.1101556    .2217031
       1  7  |   .0494575   .0814068     0.61   0.547    -.1148281    .2137431
       1  8  |    .059296   .0805384     0.74   0.466    -.1032371    .2218291
       1  9  |   .0452962   .0795947     0.57   0.572    -.1153323    .2059247
       1 10  |   .0305531   .0796712     0.38   0.703    -.1302299    .1913361
             |
       _cons |   .4537942   .0209447    21.67   0.000     .4115261    .4960623
-------------+----------------------------------------------------------------
     sigma_u |  .24783956
     sigma_e |  .09935444
         rho |  .86154429   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        451
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   .4442762   .0218574    20.33   0.000     .4014364     .487116
       0  1  |    .449652   .0212102    21.20   0.000     .4080808    .4912232
       0  2  |   .4537942   .0209447    21.67   0.000     .4127434     .494845
       0  3  |   .5142099   .0208336    24.68   0.000     .4733767    .5550431
       0  4  |   .5758047   .0232575    24.76   0.000     .5302209    .6213885
       0  5  |   .5738031   .0236539    24.26   0.000     .5274422     .620164
       0  6  |   .5675504   .0243941    23.27   0.000     .5197388     .615362
       0  7  |   .5751088   .0237581    24.21   0.000     .5285438    .6216738
       0  8  |   .5712836   .0249697    22.88   0.000     .5223439    .6202234
       0  9  |   .5837222   .0235074    24.83   0.000     .5376485    .6297958
       0 10  |   .5957482   .0240715    24.75   0.000     .5485689    .6429274
       1  0  |   .4574024   .0218897    20.90   0.000     .4144993    .5003055
       1  1  |   .4575522   .0218944    20.90   0.000     .4146399    .5004646
       1  2  |   .4537942   .0209447    21.67   0.000     .4127434     .494845
       1  3  |    .544875   .0530388    10.27   0.000     .4409209    .6488291
       1  4  |   .6094228   .0616689     9.88   0.000     .4885539    .7302916
       1  5  |   .6210293   .0605713    10.25   0.000     .5023118    .7397468
       1  6  |   .6233241   .0607506    10.26   0.000     .5042552    .7423931
       1  7  |   .6245663   .0601588    10.38   0.000     .5066573    .7424753
       1  8  |   .6305796   .0588175    10.72   0.000     .5152994    .7458599
       1  9  |   .6290184    .058399    10.77   0.000     .5145585    .7434783
       1 10  |   .6263013   .0583564    10.73   0.000     .5119248    .7406777
------------------------------------------------------------------------------

. 
. * Women's civil liberties
. * Multiple imputation
. clear

. use simplediffindifflong.dta, clear

. global yvar = "v2x_gencl"

. quietly: chp9simpmultimp

. * Successful social vs. successful urban civic
. mi estimate, post dots saving(miest, replace):  xtreg $yvar i.leftist##ib(2).year if success==1, fe vce(robust)

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        473

Group variable: revid                           Number of groups  =         43
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1580
                                                Largest FMI       =     0.0186
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      39.45
                                                        avg       =      39.97
                                                        max       =      40.13
Model F test:       Equal FMI                   F(  19,   39.2)   =       5.27
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .0013307   .0047862     0.28   0.782    -.0083415    .0110029
          1  |  -.0030339   .0032004    -0.95   0.349    -.0095015    .0034337
          3  |   .0833177    .028391     2.93   0.006     .0259433    .1406922
          4  |   .1425921   .0357087     3.99   0.000     .0704297    .2147546
          5  |   .1325783   .0396367     3.34   0.002     .0524566       .2127
          6  |   .1437687   .0398664     3.61   0.001     .0631804    .2243571
          7  |   .1413981   .0407132     3.47   0.001      .059086    .2237101
          8  |   .1432752   .0410006     3.49   0.001     .0603774     .226173
          9  |   .1513214   .0410315     3.69   0.001     .0683578     .234285
         10  |   .1409701   .0410469     3.43   0.001     .0579999    .2239404
             |
leftist#year |
       1  0  |   .0026122   .0070864     0.37   0.714    -.0117084    .0169328
       1  1  |   .0025809   .0034079     0.76   0.453    -.0043059    .0094678
       1  3  |  -.0511619   .0798448    -0.64   0.525    -.2125175    .1101938
       1  4  |  -.0682526    .093064    -0.73   0.468    -.2563225    .1198173
       1  5  |  -.0437718   .0972702    -0.45   0.655    -.2403503    .1528066
       1  6  |  -.0664375   .0981482    -0.68   0.502    -.2647911    .1319161
       1  7  |  -.0623949   .0976914    -0.64   0.527    -.2598303    .1350406
       1  8  |  -.0567593   .0961786    -0.59   0.558    -.2511398    .1376211
       1  9  |  -.0759157   .0960552    -0.79   0.434    -.2700481    .1182167
       1 10  |  -.0664826   .0962556    -0.69   0.494    -.2610106    .1280454
             |
       _cons |   .4570635   .0269069    16.99   0.000     .4026882    .5114388
-------------+----------------------------------------------------------------
     sigma_u |  .23602563
     sigma_e |  .12561636
         rho |  .77926972   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(leftist=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb) noestimcheck

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        473
                                                Average RVI       =    15.0404
                                                Largest FMI       =     0.0313
                                                Complete DF       =         42
DF adjustment:   Small sample                   DF:     min       =      38.88
                                                        avg       =      39.89
Within VCE type: Delta-method                           max       =      40.13

Expression   : Linear prediction, predict(xb)

1._at        : leftist         =           0
               year            =           0

2._at        : leftist         =           0
               year            =           1

3._at        : leftist         =           0
               year            =           2

4._at        : leftist         =           0
               year            =           3

5._at        : leftist         =           0
               year            =           4

6._at        : leftist         =           0
               year            =           5

7._at        : leftist         =           0
               year            =           6

8._at        : leftist         =           0
               year            =           7

9._at        : leftist         =           0
               year            =           8

10._at       : leftist         =           0
               year            =           9

11._at       : leftist         =           0
               year            =          10

12._at       : leftist         =           1
               year            =           0

13._at       : leftist         =           1
               year            =           1

14._at       : leftist         =           1
               year            =           2

15._at       : leftist         =           1
               year            =           3

16._at       : leftist         =           1
               year            =           4

17._at       : leftist         =           1
               year            =           5

18._at       : leftist         =           1
               year            =           6

19._at       : leftist         =           1
               year            =           7

20._at       : leftist         =           1
               year            =           8

21._at       : leftist         =           1
               year            =           9

22._at       : leftist         =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .4583942   .0275893    16.61   0.000     .4026398    .5141486
          2  |   .4540296   .0271952    16.70   0.000     .3990717    .5089874
          3  |   .4570635   .0269069    16.99   0.000     .4026882    .5114388
          4  |   .5403812   .0273075    19.79   0.000     .4851964    .5955661
          5  |   .5996556   .0272108    22.04   0.000     .5446662     .654645
          6  |   .5896418   .0298018    19.79   0.000     .5293872    .6498964
          7  |   .6008322   .0298521    20.13   0.000     .5404722    .6611923
          8  |   .5984615    .030589    19.56   0.000     .5365946    .6603284
          9  |   .6003387   .0308329    19.47   0.000     .5379719    .6627054
         10  |   .6083849   .0309306    19.67   0.000     .5458157     .670954
         11  |   .5980336   .0312987    19.11   0.000     .5347562     .661311
         12  |   .4610063   .0282512    16.32   0.000     .4039145    .5180982
         13  |   .4566105   .0270529    16.88   0.000     .4019401    .5112809
         14  |   .4570635   .0269069    16.99   0.000     .4026882    .5114388
         15  |   .4892194    .060445     8.09   0.000      .367068    .6113707
         16  |    .531403   .0685778     7.75   0.000     .3928165    .6699896
         17  |   .5458699    .071332     7.65   0.000     .4017175    .6900224
         18  |   .5343947    .072107     7.41   0.000     .3886761    .6801134
         19  |   .5360667   .0712419     7.52   0.000     .3920963    .6800371
         20  |   .5435793   .0697094     7.80   0.000      .402706    .6844527
         21  |   .5324691   .0696519     7.64   0.000     .3917119    .6732264
         22  |    .531551   .0698588     7.61   0.000     .3903757    .6727263
------------------------------------------------------------------------------

. mi xeq 1: tab leftist if e(N_mi) & year==2 & success==1

m=1 data:
-> tab leftist if e(N_mi) & year==2 & success==1

     Social |
revolutiona |
 ry episode |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |         29       67.44       67.44
          1 |         14       32.56      100.00
------------+-----------------------------------
      Total |         43      100.00

. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 2.9 percent of observations

. * Complete case sample as robustness test
. use simplediffindifflong.dta, clear

. xtreg v2x_gencl i.leftist##ib(2).year if success==1, fe vce(robust)
note: 1.leftist omitted because of collinearity

Fixed-effects (within) regression               Number of obs     =        451
Group variable: revid                           Number of groups  =         43

R-sq:                                           Obs per group:
     within  = 0.1729                                         min =          5
     between = 0.2330                                         avg =       10.5
     overall = 0.1117                                         max =         11

                                                F(19,42)          =          .
corr(u_i, Xb)  = 0.1526                         Prob > F          =          .

                                 (Std. Err. adjusted for 43 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   v2x_gencl |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
   1.leftist |          0  (omitted)
             |
        year |
          0  |   .0013307   .0047914     0.28   0.783    -.0083387    .0110001
          1  |  -.0030339   .0032039    -0.95   0.349    -.0094996    .0034318
          3  |   .0833177   .0284218     2.93   0.005     .0259603    .1406752
          4  |   .1425921   .0357474     3.99   0.000     .0704511    .2147332
          5  |   .1223946    .038536     3.18   0.003     .0446259    .2001633
          6  |   .1333856   .0386877     3.45   0.001     .0553106    .2114605
          7  |   .1292591   .0382375     3.38   0.002     .0520926    .2064255
          8  |   .1300964   .0380199     3.42   0.001     .0533691    .2068236
          9  |   .1425761   .0374873     3.80   0.000     .0669236    .2182286
         10  |   .1342105   .0391741     3.43   0.001     .0551541     .213267
             |
leftist#year |
       1  0  |   .0026122    .007094     0.37   0.715    -.0117042    .0169285
       1  1  |   .0025809   .0034116     0.76   0.454    -.0043039    .0094657
       1  3  |  -.0511619   .0799313    -0.64   0.526    -.2124697     .110146
       1  4  |  -.0682526   .0931648    -0.73   0.468    -.2562669    .1197617
       1  5  |  -.0335882   .0969152    -0.35   0.731     -.229171    .1619946
       1  6  |  -.0560544   .0977646    -0.57   0.569    -.2533513    .1412425
       1  7  |  -.0502559   .0967742    -0.52   0.606    -.2455541    .1450424
       1  8  |  -.0435805   .0950326    -0.46   0.649     -.235364     .148203
       1  9  |  -.0671705   .0946819    -0.71   0.482    -.2582463    .1239054
       1 10  |   -.059723    .095558    -0.62   0.535    -.2525669    .1331209
             |
       _cons |   .4512666   .0265534    16.99   0.000     .3976796    .5048535
-------------+----------------------------------------------------------------
     sigma_u |  .23405293
     sigma_e |   .1233283
         rho |  .78268711   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins leftist#year, noestimcheck

Adjusted predictions                            Number of obs     =        451
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
leftist#year |
       0  0  |   .4525973   .0271145    16.69   0.000     .3994539    .5057407
       0  1  |   .4482327   .0268519    16.69   0.000     .3956039    .5008614
       0  2  |   .4512666   .0265534    16.99   0.000     .3992229    .5033103
       0  3  |   .5345843   .0264081    20.24   0.000     .4828253    .5863433
       0  4  |   .5938587   .0298564    19.89   0.000     .5353411    .6523763
       0  5  |   .5736612   .0311662    18.41   0.000     .5125764    .6347459
       0  6  |   .5846522   .0311892    18.75   0.000     .5235225    .6457818
       0  7  |   .5805256   .0306752    18.92   0.000     .5204033     .640648
       0  8  |   .5813629   .0304967    19.06   0.000     .5215905    .6411353
       0  9  |   .5938427   .0301007    19.73   0.000     .5348465    .6528389
       0 10  |   .5854771   .0320475    18.27   0.000     .5226652    .6482889
       1  0  |   .4552094   .0279585    16.28   0.000     .4004117    .5100071
       1  1  |   .4508136   .0267076    16.88   0.000     .3984676    .5031595
       1  2  |   .4512666   .0265534    16.99   0.000     .3992229    .5033103
       1  3  |   .4834224   .0592623     8.16   0.000     .3672705    .5995744
       1  4  |   .5256061   .0672762     7.81   0.000     .3937471    .6574651
       1  5  |    .540073   .0700459     7.71   0.000     .4027855    .6773605
       1  6  |   .5285978   .0708222     7.46   0.000     .3897888    .6674067
       1  7  |   .5302698   .0699511     7.58   0.000     .3931682    .6673714
       1  8  |   .5377824   .0684222     7.86   0.000     .4036774    .6718874
       1  9  |   .5266722   .0683701     7.70   0.000     .3926694    .6606751
       1 10  |   .5257541   .0685782     7.67   0.000     .3913432     .660165
------------------------------------------------------------------------------

. 
. *========================================================
. * EFFECT OF REVOLUTION ON POLITICAL KILLING (FIGURE 9.10)
. *========================================================
. * Compared to matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdclkill"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
    vdclkill |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0613804   .0263593    -2.33   0.055    -.1245984    .0018377
          1  |  -.0147856   .0148028    -1.00   0.353    -.0502874    .0207163
          3  |   .0617678   .0926206     0.67   0.528    -.1603664     .283902
          4  |   .0022594    .158473     0.01   0.989    -.3778101    .3823289
          5  |   .0101907   .1502324     0.07   0.948    -.3501151    .3704966
          6  |    .013865    .150445     0.09   0.929    -.3469508    .3746808
          7  |  -.0895379   .1518254    -0.59   0.575    -.4536642    .2745885
          8  |  -.0956876     .15302    -0.63   0.553     -.462679    .2713038
          9  |  -.1211766   .1538481    -0.79   0.458    -.4901541     .247801
         10  |  -.0794738   .1380005    -0.58   0.584    -.4104436    .2514959
             |
  revny#year |
       1  0  |   .0943647   .0361883     2.61   0.037     .0075734    .1811559
       1  1  |   .0503843   .0376716     1.34   0.226    -.0399644    .1407331
       1  3  |  -.1921013   .2479128    -0.77   0.465    -.7866764    .4024739
       1  4  |   .1672074   .5377322     0.31   0.766    -1.122448    1.456863
       1  5  |   .2083948    .521208     0.40   0.702    -1.041631     1.45842
       1  6  |   .1959482   .4900234     0.40   0.702    -.9792863    1.371183
       1  7  |   .2766928    .490009     0.56   0.591    -.8985073    1.451893
       1  8  |   .2166781   .5057163     0.43   0.682    -.9961932    1.429549
       1  9  |   .2175463    .523012     0.42   0.691    -1.036806    1.471898
       1 10  |   .1615384   .5087105     0.32   0.761    -1.058514    1.381591
             |
       _cons |   1.464487   .1700831     8.61   0.000     1.056573    1.872402
-------------+----------------------------------------------------------------
     sigma_u |  .85865675
     sigma_e |  .55183509
         rho |  .70770008   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   1.403107   .1636954     8.57   0.000     1.010513    1.795701
          2  |   1.449702   .1723563     8.41   0.000     1.036336    1.863068
          3  |   1.464487   .1700831     8.61   0.000     1.056573    1.872402
          4  |   1.526255   .1129029    13.52   0.000     1.255477    1.797033
          5  |   1.466747   .2120557     6.92   0.000     .9581685    1.975325
          6  |   1.474678   .2028266     7.27   0.000     .9882344    1.961122
          7  |   1.478352    .203605     7.26   0.000     .9900417    1.966663
          8  |   1.374949    .198388     6.93   0.000     .8991509    1.850748
          9  |     1.3688   .1948609     7.02   0.000     .9014602    1.836139
         10  |   1.343311   .1903102     7.06   0.000     .8868855    1.799736
         11  |   1.385014   .1720368     8.05   0.000     .9724136    1.797613
         12  |   1.497472   .1825893     8.20   0.000     1.059563     1.93538
         13  |   1.500086   .1838119     8.16   0.000     1.059246    1.940926
         14  |   1.464487   .1700831     8.61   0.000     1.056573    1.872402
         15  |   1.334154    .181942     7.33   0.000     .8977983     1.77051
         16  |   1.633954   .3359519     4.86   0.002     .8282329    2.439675
         17  |   1.683073   .3278167     5.13   0.002     .8968624    2.469283
         18  |   1.674301   .2967961     5.64   0.001     .9624876    2.386113
         19  |   1.651642    .304171     5.43   0.001     .9221417    2.381143
         20  |   1.585478   .3233124     4.90   0.002     .8100701    2.360886
         21  |   1.560857    .348421     4.48   0.003     .7252309    2.396483
         22  |   1.546552   .3529591     4.38   0.004     .7000419    2.393062
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.1586
                                                Largest FMI       =     0.1432
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.56
                                                        avg       =      22.79
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.5)   =      13.35
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
    vdclkill |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0033851   .0770451    -0.04   0.965    -.1626836    .1559134
          1  |   .0519884   .0663266     0.78   0.441    -.0851485    .1891253
          3  |  -.0438973   .0397194    -1.11   0.280    -.1260211    .0382265
          4  |   .0778237   .0560666     1.39   0.178    -.0380996    .1937469
          5  |   .0581395   .0713262     0.82   0.423    -.0893345    .2056136
          6  |   .0494977   .0744414     0.66   0.513    -.1044316     .203427
          7  |    .008742   .0866705     0.10   0.921    -.1706241    .1881081
          8  |    .003988   .0821558     0.05   0.962    -.1660507    .1740267
          9  |   .0495035   .0879972     0.56   0.579    -.1330667    .2320736
         10  |   .1355387   .1392139     0.97   0.341    -.1532502    .4243276
             |
  revny#year |
       1  0  |   .0710702    .089974     0.79   0.438    -.1149601    .2571005
       1  1  |  -.0410223    .079127    -0.52   0.609    -.2046254    .1225809
       1  3  |   .3637753   .1587555     2.29   0.031     .0355322    .6920184
       1  4  |   .8467498   .1661536     5.10   0.000     .5032103    1.190289
       1  5  |   .8596878   .1795948     4.79   0.000     .4883272    1.231048
       1  6  |   .8148386   .1996638     4.08   0.000     .4019434    1.227734
       1  7  |   .9130369   .1723476     5.30   0.000     .5563734      1.2697
       1  8  |   .8703615   .1864482     4.67   0.000     .4845458    1.256177
       1  9  |   .7966108   .1923081     4.14   0.000     .3981955    1.195026
       1 10  |   .7578036   .2105793     3.60   0.002     .3179014    1.197706
             |
       _cons |   1.846757   .0795372    23.22   0.000     1.682305    2.011208
-------------+----------------------------------------------------------------
     sigma_u |   .9512809
     sigma_e |  .45948679
         rho |  .81082786   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =    13.0098
                                                Largest FMI       =     0.1383
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.70
                                                        avg       =      22.66
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   1.843371    .103489    17.81   0.000     1.629397    2.057345
          2  |   1.898745   .0876794    21.66   0.000     1.717459    2.080031
          3  |   1.846757   .0795372    23.22   0.000     1.682305    2.011208
          4  |   1.802859   .0778231    23.17   0.000     1.641952    1.963766
          5  |    1.92458   .0724541    26.56   0.000     1.774774    2.074386
          6  |   1.904896   .0773668    24.62   0.000     1.744933     2.06486
          7  |   1.896254   .0768163    24.69   0.000     1.737415    2.055094
          8  |   1.855499   .0665164    27.90   0.000     1.717745    1.993253
          9  |   1.850745   .0623215    29.70   0.000      1.72165    1.979839
         10  |    1.89626    .065131    29.11   0.000     1.760629    2.031891
         11  |   1.982295   .1128073    17.57   0.000     1.747782    2.216809
         12  |   1.914442   .0760768    25.16   0.000     1.757145    2.071738
         13  |   1.857723   .0852699    21.79   0.000     1.681419    2.034027
         14  |   1.846757   .0795372    23.22   0.000     1.682305    2.011208
         15  |   2.166635   .1536041    14.11   0.000     1.849043    2.484227
         16  |    2.77133   .1106422    25.05   0.000     2.542566    3.000094
         17  |   2.764584   .1136586    24.32   0.000     2.529535    2.999633
         18  |   2.711093   .1308718    20.72   0.000     2.440424    2.981762
         19  |   2.768536   .1314415    21.06   0.000     2.496379    3.040692
         20  |   2.721106   .1428114    19.05   0.000     2.425419    3.016793
         21  |   2.692871   .1481887    18.17   0.000     2.385575    3.000167
         22  |   2.740099   .1536706    17.83   0.000     2.419234    3.060964
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg vdclkill i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0245                         Obs per group: min =        11
       between = 0.0326                                        avg =      11.0
       overall = 0.0020                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = -0.1525                        Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdclkill |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0613804   .0263593    -2.33   0.048     -.122165   -.0005958
          1  |  -.0147856   .0148028    -1.00   0.347    -.0489208    .0193497
          3  |   .0617678   .0926206     0.67   0.524    -.1518157    .2753514
          4  |   .0022594    .158473     0.01   0.989      -.36318    .3676988
          5  |   .0101907   .1502324     0.07   0.948    -.3362458    .3566273
          6  |    .013865    .150445     0.09   0.929    -.3330619    .3607918
          7  |  -.0895379   .1518254    -0.59   0.572    -.4396478    .2605721
          8  |  -.0956876     .15302    -0.63   0.549    -.4485523    .2571771
          9  |  -.1211766   .1538481    -0.79   0.454    -.4759509    .2335978
         10  |  -.0794738   .1380005    -0.58   0.581    -.3977035    .2387558
             |
  revny#year |
       1  0  |   .0943647   .0361883     2.61   0.031     .0109143     .177815
       1  1  |   .0503843   .0376716     1.34   0.218    -.0364866    .1372553
       1  3  |  -.1921013   .2479128    -0.77   0.461    -.7637893    .3795868
       1  4  |   .1672074   .5377322     0.31   0.764    -1.072805     1.40722
       1  5  |   .2083948    .521208     0.40   0.700     -.993513    1.410303
       1  6  |   .1959482   .4900234     0.40   0.700    -.9340477    1.325944
       1  7  |   .2766928    .490009     0.56   0.588      -.85327    1.406656
       1  8  |   .2166781   .5057163     0.43   0.680    -.9495059    1.382862
       1  9  |   .2175463    .523012     0.42   0.688    -.9885215    1.423614
       1 10  |   .1615384   .5087105     0.32   0.759     -1.01155    1.334627
             |
       _cons |   1.464487   .1700831     8.61   0.000     1.072275      1.8567
-------------+----------------------------------------------------------------
     sigma_u |  .85865675
     sigma_e |  .55183509
         rho |  .70770008   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   1.403107   .1636954     8.57   0.000      1.08227    1.723944
       0  1  |   1.449702   .1723563     8.41   0.000      1.11189    1.787514
       0  2  |   1.464487   .1700831     8.61   0.000     1.131131    1.797844
       0  3  |   1.526255   .1129029    13.52   0.000      1.30497    1.747541
       0  4  |   1.466747   .2120557     6.92   0.000     1.051125    1.882368
       0  5  |   1.474678   .2028266     7.27   0.000     1.077145    1.872211
       0  6  |   1.478352    .203605     7.26   0.000     1.079294    1.877411
       0  7  |   1.374949    .198388     6.93   0.000     .9861162    1.763783
       0  8  |     1.3688   .1948609     7.02   0.000     .9868794     1.75072
       0  9  |   1.343311   .1903102     7.06   0.000     .9703097    1.716312
       0 10  |   1.385014   .1720368     8.05   0.000     1.047828    1.722199
       1  0  |   1.497472   .1825893     8.20   0.000     1.139603     1.85534
       1  1  |   1.500086   .1838119     8.16   0.000     1.139821    1.860351
       1  2  |   1.464487   .1700831     8.61   0.000     1.131131    1.797844
       1  3  |   1.334154    .181942     7.33   0.000     .9775542    1.690754
       1  4  |   1.633954   .3359519     4.86   0.000     .9755006    2.292408
       1  5  |   1.683073   .3278167     5.13   0.000     1.040564    2.325582
       1  6  |   1.674301   .2967961     5.64   0.000     1.092591     2.25601
       1  7  |   1.651642    .304171     5.43   0.000     1.055478    2.247807
       1  8  |   1.585478   .3233124     4.90   0.000     .9517972    2.219158
       1  9  |   1.560857    .348421     4.48   0.000     .8779645     2.24375
       1 10  |   1.546552   .3529591     4.38   0.000     .8547648    2.238339
------------------------------------------------------------------------------

. xtreg vdclkill i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.3030                         Obs per group: min =         5
       between = 0.0069                                        avg =      10.4
       overall = 0.0390                                        max =        11

                                                F(20,25)           =     33.12
corr(u_i, Xb)  = -0.1252                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdclkill |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0034114   .0771541    -0.04   0.965    -.1623132    .1554904
          1  |   .0520224   .0664202     0.78   0.441    -.0847726    .1888173
          3  |  -.0437315   .0397076    -1.10   0.281    -.1255107    .0380478
          4  |   .0780773   .0560649     1.39   0.176    -.0373905    .1935452
          5  |   .0584299   .0713355     0.82   0.420    -.0884884    .2053482
          6  |    .049972   .0747389     0.67   0.510    -.1039556    .2038996
          7  |    .016977   .0894143     0.19   0.851    -.1671753    .2011292
          8  |   .0118033   .0839172     0.14   0.889    -.1610273     .184634
          9  |   .0857226   .0851119     1.01   0.323    -.0895686    .2610139
         10  |   .2203772   .1496257     1.47   0.153    -.0877826     .528537
             |
  revny#year |
       1  0  |   .0710965   .0900752     0.79   0.437     -.114417    .2566099
       1  1  |  -.0410562   .0792177    -0.52   0.609    -.2042082    .1220958
       1  3  |   .3636094   .1588344     2.29   0.031     .0364837    .6907351
       1  4  |   .8464961    .166232     5.09   0.000     .5041348    1.188857
       1  5  |   .8059094   .1789917     4.50   0.000     .4372691     1.17455
       1  6  |    .760389   .2003383     3.80   0.001     .3477845    1.172993
       1  7  |   .8609038   .1779683     4.84   0.000     .4943711    1.227436
       1  8  |   .8041458   .1978355     4.06   0.000     .3966959    1.211596
       1  9  |   .7912876   .1872515     4.23   0.000      .405636    1.176939
       1 10  |   .7286437   .1946722     3.74   0.001     .3277088    1.129579
             |
       _cons |   1.820976   .0717931    25.36   0.000     1.673115    1.968836
-------------+----------------------------------------------------------------
     sigma_u |  .94845997
     sigma_e |  .44046051
         rho |  .82259629   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   1.817564   .0971446    18.71   0.000     1.627164    2.007964
       0  1  |   1.872998   .0800349    23.40   0.000     1.716132    2.029863
       0  2  |   1.820976   .0717931    25.36   0.000     1.680264    1.961687
       0  3  |   1.777244   .0732831    24.25   0.000     1.633612    1.920876
       0  4  |   1.899053    .068274    27.82   0.000     1.765238    2.032868
       0  5  |   1.879405   .0735813    25.54   0.000     1.735189    2.023622
       0  6  |   1.870948   .0733704    25.50   0.000     1.727144    2.014751
       0  7  |   1.837953   .0696388    26.39   0.000     1.701463    1.974442
       0  8  |   1.832779   .0630143    29.09   0.000     1.709273    1.956285
       0  9  |   1.906698   .0663827    28.72   0.000     1.776591    2.036806
       0 10  |   2.041353   .1297463    15.73   0.000     1.787055    2.295651
       1  0  |   1.888661   .0678419    27.84   0.000     1.755693    2.021628
       1  1  |   1.831942   .0783154    23.39   0.000     1.678446    1.985437
       1  2  |   1.820976   .0717931    25.36   0.000     1.680264    1.961687
       1  3  |   2.140854   .1501178    14.26   0.000     1.846628    2.435079
       1  4  |   2.745549   .1171506    23.44   0.000     2.515938     2.97516
       1  5  |   2.685315    .115758    23.20   0.000     2.458433    2.912196
       1  6  |   2.631336   .1359888    19.35   0.000     2.364803     2.89787
       1  7  |   2.698856   .1451236    18.60   0.000     2.414419    2.983293
       1  8  |   2.636925   .1593246    16.55   0.000     2.324654    2.949195
       1  9  |   2.697986   .1390815    19.40   0.000     2.425391    2.970581
       1 10  |   2.769996   .1314511    21.07   0.000     2.512357    3.027636
------------------------------------------------------------------------------

. 
. *============================================================
. * EFFECT OF REVOLUTION ON POLITICAL CIVIL LIBERTIES, MATCHED 
. *    CASES (FIGURE 9.11)
. *============================================================
. * Compared to matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdpolitlib"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
  vdpolitlib |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0075381   .0079514    -0.95   0.377    -.0266082    .0115319
          1  |  -.0044702   .0053812    -0.83   0.435     -.017376    .0084356
          3  |   .0415393   .0363851     1.14   0.294     -.045724    .1288026
          4  |   .0444032   .0374756     1.18   0.277    -.0454754    .1342817
          5  |   .0353172   .0410769     0.86   0.420    -.0631986    .1338329
          6  |   .0321853   .0418606     0.77   0.469      -.06821    .1325807
          7  |  -.0125936   .0474916    -0.27   0.799    -.1264939    .1013067
          8  |  -.0239699   .0564043    -0.42   0.684    -.1592457    .1113058
          9  |  -.0264676   .0569153    -0.47   0.657    -.1629688    .1100336
         10  |  -.0212126   .0562643    -0.38   0.718    -.1561526    .1137275
             |
  revny#year |
       1  0  |   .0210858   .0121914     1.73   0.130    -.0081531    .0503246
       1  1  |   .0111368   .0085135     1.31   0.235    -.0092815     .031555
       1  3  |  -.0242883   .0672536    -0.36   0.729    -.1855841    .1370076
       1  4  |  -.0478248   .1138472    -0.42   0.688    -.3208672    .2252177
       1  5  |   -.044162   .1250478    -0.35   0.735    -.3440671     .255743
       1  6  |  -.0616315   .1183224    -0.52   0.620    -.3454069    .2221439
       1  7  |   -.014481   .1079668    -0.13   0.897    -.2734202    .2444583
       1  8  |  -.0176068   .1173536    -0.15   0.885    -.2990588    .2638452
       1  9  |  -.0230213   .1117949    -0.21   0.843    -.2911417    .2450991
       1 10  |  -.0361556   .1091697    -0.33   0.751    -.2979798    .2256685
             |
       _cons |   .3433172   .0549652     6.25   0.001     .2114929    .4751415
-------------+----------------------------------------------------------------
     sigma_u |  .20400095
     sigma_e |  .14446556
         rho |  .66600406   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3357791   .0540937     6.21   0.001     .2060448    .4655133
          2  |   .3388469   .0539044     6.29   0.001     .2095667    .4681272
          3  |   .3433172   .0549652     6.25   0.001     .2114929    .4751415
          4  |   .3848565   .0373867    10.29   0.000      .295191    .4745219
          5  |   .3877204   .0414608     9.35   0.000     .2882841    .4871567
          6  |   .3786344   .0483637     7.83   0.000     .2626425    .4946262
          7  |   .3755025   .0490339     7.66   0.000     .2579033    .4931018
          8  |   .3307236   .0372781     8.87   0.000     .2413187    .4201285
          9  |   .3193472   .0425925     7.50   0.000     .2171967    .4214978
         10  |   .3168496   .0419653     7.55   0.000     .2162032    .4174961
         11  |   .3221046   .0402912     7.99   0.000     .2254734    .4187359
         12  |   .3568648   .0568916     6.27   0.001     .2204203    .4933093
         13  |   .3499837    .055798     6.27   0.001     .2161621    .4838054
         14  |   .3433172   .0549652     6.25   0.001     .2114929    .4751415
         15  |   .3605682   .0451135     7.99   0.000     .2523715    .4687649
         16  |   .3398956   .0750809     4.53   0.003     .1598274    .5199638
         17  |   .3344723   .0795283     4.21   0.005     .1437378    .5252069
         18  |    .313871   .0735688     4.27   0.004     .1374294    .4903127
         19  |   .3162426   .0751504     4.21   0.005     .1360077    .4964776
         20  |   .3017404   .0852421     3.54   0.011     .0973024    .5061785
         21  |   .2938283   .0811088     3.62   0.010     .0993033    .4883534
         22  |    .285949   .0809016     3.53   0.011     .0919207    .4799773
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2485
                                                Largest FMI       =     0.0927
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.01
                                                        avg       =      23.01
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.0)   =       5.43
Within VCE type:       Robust                   Prob > F          =     0.0001

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
  vdpolitlib |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0159264   .0103276    -1.54   0.137    -.0372796    .0054269
          1  |  -.0116284   .0077871    -1.49   0.149    -.0277289    .0044722
          3  |   .0486961   .0232698     2.09   0.048     .0005834    .0968088
          4  |   .0735955   .0312147     2.36   0.027     .0090559    .1381351
          5  |   .0763751   .0350929     2.18   0.040     .0038169    .1489333
          6  |    .084973   .0412007     2.06   0.051    -.0002151    .1701612
          7  |   .0853747   .0416835     2.05   0.052    -.0008269    .1715764
          8  |   .0816599   .0421982     1.94   0.065    -.0056115    .1689313
          9  |   .0789384   .0434659     1.82   0.082    -.0109896    .1688665
         10  |   .0896406   .0457244     1.96   0.062    -.0050374    .1843186
             |
  revny#year |
       1  0  |   .0196459   .0104897     1.87   0.074    -.0020426    .0413344
       1  1  |   .0157307   .0076114     2.07   0.050    -6.54e-06     .031468
       1  3  |   .0875701    .041002     2.14   0.043     .0027943    .1723459
       1  4  |   .3034818   .0419821     7.23   0.000     .2166796    .3902839
       1  5  |   .3119004   .0475309     6.56   0.000     .2136179    .4101829
       1  6  |   .2838071   .0530096     5.35   0.000     .1741874    .3934268
       1  7  |   .2757896   .0529919     5.20   0.000      .166168    .3854111
       1  8  |    .267713   .0540247     4.96   0.000     .1559525    .3794736
       1  9  |   .2624923   .0526666     4.98   0.000      .153477    .3715076
       1 10  |   .2569112   .0565797     4.54   0.000       .13925    .3745724
             |
       _cons |   .4129189   .0321061    12.86   0.000     .3465363    .4793015
-------------+----------------------------------------------------------------
     sigma_u |  .21282504
     sigma_e |  .15297168
         rho |  .65935815   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =    16.8609
                                                Largest FMI       =     0.0836
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.26
                                                        avg       =      22.89
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3969925   .0388142    10.23   0.000     .3167401    .4772449
          2  |   .4012905   .0355898    11.28   0.000     .3277049    .4748761
          3  |   .4129189   .0321061    12.86   0.000     .3465363    .4793015
          4  |    .461615   .0208283    22.16   0.000     .4185505    .5046796
          5  |   .4865144   .0191297    25.43   0.000     .4469618     .526067
          6  |    .489294   .0190116    25.74   0.000     .4499856    .5286024
          7  |   .4978919    .022351    22.28   0.000     .4516762    .5441077
          8  |   .4982936   .0223083    22.34   0.000     .4521367    .5444505
          9  |   .4945788    .021881    22.60   0.000     .4492924    .5398651
         10  |   .4918573   .0215899    22.78   0.000     .4470868    .5366277
         11  |   .5025595    .026688    18.83   0.000     .4471036    .5580153
         12  |   .4166384   .0353517    11.79   0.000     .3435451    .4897317
         13  |   .4170212   .0338758    12.31   0.000     .3469797    .4870628
         14  |   .4129189   .0321061    12.86   0.000     .3465363    .4793015
         15  |   .5491851   .0404468    13.58   0.000     .4655573    .6328129
         16  |   .7899961   .0277087    28.51   0.000     .7327056    .8472867
         17  |   .8011944   .0342338    23.40   0.000     .7304019    .8719869
         18  |   .7816991   .0397839    19.65   0.000     .6994251     .863973
         19  |   .7740832   .0410104    18.88   0.000     .6892264    .8589399
         20  |   .7622918   .0437995    17.40   0.000     .6716616    .8529221
         21  |   .7543496   .0443314    17.02   0.000     .6625534    .8461458
         22  |   .7594706   .0451275    16.83   0.000     .6656926    .8532487
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg vdpolitlib i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0353                         Obs per group: min =        11
       between = 0.0266                                        avg =      11.0
       overall = 0.0152                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.0402                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  vdpolitlib |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0075381   .0079514    -0.95   0.371    -.0258741    .0107978
          1  |  -.0044702   .0053812    -0.83   0.430    -.0168793    .0079388
          3  |   .0415393   .0363851     1.14   0.287     -.042365    .1254435
          4  |   .0444032   .0374756     1.18   0.270    -.0420157     .130822
          5  |   .0353172   .0410769     0.86   0.415    -.0594064    .1300407
          6  |   .0321853   .0418606     0.77   0.464    -.0643455    .1287161
          7  |  -.0125936   .0474916    -0.27   0.798    -.1221095    .0969223
          8  |  -.0239699   .0564043    -0.42   0.682    -.1540385    .1060986
          9  |  -.0264676   .0569153    -0.47   0.654    -.1577144    .1047793
         10  |  -.0212126   .0562643    -0.38   0.716    -.1509583    .1085332
             |
  revny#year |
       1  0  |   .0210858   .0121914     1.73   0.122    -.0070276    .0491991
       1  1  |   .0111368   .0085135     1.31   0.227    -.0084955     .030769
       1  3  |  -.0242883   .0672536    -0.36   0.727    -.1793753    .1307988
       1  4  |  -.0478248   .1138472    -0.42   0.685    -.3103569    .2147074
       1  5  |   -.044162   .1250478    -0.35   0.733    -.3325227    .2441987
       1  6  |  -.0616315   .1183224    -0.52   0.617    -.3344835    .2112205
       1  7  |   -.014481   .1079668    -0.13   0.897    -.2634528    .2344909
       1  8  |  -.0176068   .1173536    -0.15   0.884    -.2882248    .2530112
       1  9  |  -.0230213   .1117949    -0.21   0.842    -.2808209    .2347783
       1 10  |  -.0361556   .1091697    -0.33   0.749    -.2879013      .21559
             |
       _cons |   .3433172   .0549652     6.25   0.000     .2165673    .4700671
-------------+----------------------------------------------------------------
     sigma_u |  .20400095
     sigma_e |  .14446556
         rho |  .66600406   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3357791   .0540937     6.21   0.000     .2297573    .4418008
       0  1  |   .3388469   .0539044     6.29   0.000     .2331962    .4444977
       0  2  |   .3433172   .0549652     6.25   0.000     .2355874    .4510469
       0  3  |   .3848565   .0373867    10.29   0.000     .3115798    .4581331
       0  4  |   .3877204   .0414608     9.35   0.000     .3064588     .468982
       0  5  |   .3786344   .0483637     7.83   0.000     .2838432    .4734255
       0  6  |   .3755025   .0490339     7.66   0.000     .2793978    .4716073
       0  7  |   .3307236   .0372781     8.87   0.000     .2576599    .4037873
       0  8  |   .3193472   .0425925     7.50   0.000     .2358675     .402827
       0  9  |   .3168496   .0419653     7.55   0.000     .2345991    .3991002
       0 10  |   .3221046   .0402912     7.99   0.000     .2431354    .4010739
       1  0  |   .3568648   .0568916     6.27   0.000     .2453593    .4683703
       1  1  |   .3499837    .055798     6.27   0.000     .2406216    .4593458
       1  2  |   .3433172   .0549652     6.25   0.000     .2355874    .4510469
       1  3  |   .3605682   .0451135     7.99   0.000     .2721474    .4489889
       1  4  |   .3398956   .0750809     4.53   0.000     .1927398    .4870514
       1  5  |   .3344723   .0795283     4.21   0.000     .1785998    .4903449
       1  6  |    .313871   .0735688     4.27   0.000     .1696789    .4580631
       1  7  |   .3162426   .0751504     4.21   0.000     .1689506    .4635347
       1  8  |   .3017404   .0852421     3.54   0.000      .134669    .4688118
       1  9  |   .2938283   .0811088     3.62   0.000     .1348581    .4527986
       1 10  |    .285949   .0809016     3.53   0.000     .1273847    .4445133
------------------------------------------------------------------------------

. xtreg vdpolitlib i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.4170                         Obs per group: min =         5
       between = 0.0284                                        avg =      10.4
       overall = 0.1358                                        max =        11

                                                F(20,25)           =     24.65
corr(u_i, Xb)  = -0.1199                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
  vdpolitlib |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0159579    .010334    -1.54   0.135    -.0372412    .0053254
          1  |   -.011645    .007796    -1.49   0.148    -.0277011    .0044111
          3  |   .0487465   .0232972     2.09   0.047     .0007649     .096728
          4  |   .0736806   .0312469     2.36   0.027     .0093263    .1380348
          5  |   .0764523   .0351337     2.18   0.039     .0040931    .1488115
          6  |   .0856714   .0414506     2.07   0.049     .0003024    .1710405
          7  |   .0961541   .0419982     2.29   0.031     .0096573     .182651
          8  |   .0924555   .0423965     2.18   0.039     .0051383    .1797727
          9  |   .0974695   .0448665     2.17   0.040     .0050652    .1898738
         10  |   .1149745   .0472779     2.43   0.023     .0176039    .2123451
             |
  revny#year |
       1  0  |   .0196774   .0104945     1.88   0.073    -.0019364    .0412912
       1  1  |   .0157473   .0076188     2.07   0.049     .0000561    .0314386
       1  3  |   .0875198   .0410305     2.13   0.043     .0030159    .1720237
       1  4  |   .3033967   .0420142     7.22   0.000     .2168668    .3899266
       1  5  |   .2940343    .051318     5.73   0.000     .1883429    .3997258
       1  6  |   .2642552   .0583007     4.53   0.000     .1441827    .3843277
       1  7  |    .248291   .0637377     3.90   0.001     .1170207    .3795613
       1  8  |   .2366856   .0650569     3.64   0.001     .1026984    .3706728
       1  9  |   .2473054   .0590566     4.19   0.000     .1256759    .3689348
       1 10  |   .2399957   .0601482     3.99   0.001     .1161182    .3638732
             |
       _cons |   .4084755    .027852    14.67   0.000     .3511132    .4658378
-------------+----------------------------------------------------------------
     sigma_u |  .21659501
     sigma_e |  .14554424
         rho |  .68892499   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3925176   .0348106    11.28   0.000       .32429    .4607452
       0  1  |   .3968305   .0316898    12.52   0.000     .3347197    .4589414
       0  2  |   .4084755    .027852    14.67   0.000     .3538866    .4630645
       0  3  |    .457222   .0179694    25.44   0.000     .4220026    .4924414
       0  4  |   .4821561   .0190449    25.32   0.000     .4448287    .5194835
       0  5  |   .4849278   .0208466    23.26   0.000     .4440692    .5257865
       0  6  |    .494147   .0258335    19.13   0.000     .4435142    .5447798
       0  7  |   .5046296   .0267021    18.90   0.000     .4522945    .5569648
       0  8  |    .500931   .0262558    19.08   0.000     .4494706    .5523915
       0  9  |    .505945   .0283394    17.85   0.000     .4504009    .5614891
       0 10  |   .5234501   .0330554    15.84   0.000     .4586626    .5882375
       1  0  |    .412195   .0311563    13.23   0.000     .3511298    .4732602
       1  1  |   .4125779   .0296988    13.89   0.000     .3543694    .4707864
       1  2  |   .4084755    .027852    14.67   0.000     .3538866    .4630645
       1  3  |   .5447418   .0374498    14.55   0.000     .4713416    .6181419
       1  4  |   .7855528   .0311634    25.21   0.000     .7244736     .846632
       1  5  |   .7789622   .0379278    20.54   0.000      .704625    .8532994
       1  6  |   .7584022   .0437995    17.32   0.000     .6725567    .8442477
       1  7  |   .7529207   .0458513    16.42   0.000     .6630537    .8427876
       1  8  |   .7376166    .048887    15.09   0.000     .6417997    .8334335
       1  9  |   .7532504   .0424012    17.76   0.000     .6701456    .8363552
       1 10  |   .7634457   .0407184    18.75   0.000     .6836391    .8432523
------------------------------------------------------------------------------

. 
. *==========================================================
. * EFFECT OF REVOLUTION ON PRIVATE CIVIL LIBERTIES, MATCHED 
. *    CASES (FIGURE 9.12)
. *==========================================================
. * Compared to matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdclpriv"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
    vdclpriv |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.006513   .0046932    -1.39   0.211    -.0177688    .0047428
          1  |  -.0010025   .0019538    -0.51   0.625    -.0056884    .0036834
          3  |   .0409177   .0337698     1.21   0.268    -.0400732    .1219087
          4  |   .0476178   .0344865     1.38   0.213    -.0350919    .1303275
          5  |    .048259   .0345879     1.40   0.208     -.034694    .1312119
          6  |   .0497216   .0344663     1.44   0.195    -.0329398     .132383
          7  |   .0499365   .0345265     1.45   0.194    -.0328693    .1327423
          8  |   .0534115   .0340575     1.57   0.164    -.0282694    .1350925
          9  |   .0479823   .0341623     1.40   0.206    -.0339501    .1299146
         10  |   .0493414   .0342295     1.44   0.196     -.032752    .1314347
             |
  revny#year |
       1  0  |   .0109569   .0060387     1.81   0.115    -.0035258    .0254396
       1  1  |   .0019684   .0015327     1.28   0.243    -.0017075    .0056443
       1  3  |  -.0310448   .0557624    -0.56   0.596    -.1647809    .1026914
       1  4  |  -.0551736   .0913434    -0.60   0.566    -.2742447    .1638974
       1  5  |  -.0595024   .0964591    -0.62   0.558    -.2908425    .1718378
       1  6  |  -.0769629   .0969832    -0.79   0.455    -.3095599    .1556341
       1  7  |  -.0766812   .0958485    -0.80   0.452    -.3065569    .1531944
       1  8  |  -.1021374   .1005442    -1.02   0.346    -.3432749        .139
       1  9  |  -.1130987   .0994442    -1.14   0.295    -.3515981    .1254006
       1 10  |  -.1236814   .0979139    -1.26   0.250    -.3585107    .1111478
             |
       _cons |   .3822786   .0512517     7.46   0.000     .2593606    .5051967
-------------+----------------------------------------------------------------
     sigma_u |  .19004928
     sigma_e |  .11997804
         rho |  .71503179   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3757656   .0506317     7.42   0.000     .2543345    .4971967
          2  |   .3812762   .0509344     7.49   0.000     .2591189    .5034334
          3  |   .3822786   .0512517     7.46   0.000     .2593606    .5051967
          4  |   .4231963   .0260568    16.24   0.000     .3607037     .485689
          5  |   .4298964   .0282718    15.21   0.000     .3620914    .4977014
          6  |   .4305376   .0289149    14.89   0.000     .3611903    .4998849
          7  |   .4320002   .0293352    14.73   0.000     .3616449    .5023556
          8  |   .4322151   .0288437    14.98   0.000     .3630386    .5013916
          9  |   .4356902   .0300638    14.49   0.000     .3635875    .5077929
         10  |   .4302609    .028299    15.20   0.000     .3623908     .498131
         11  |     .43162   .0290475    14.86   0.000     .3619548    .5012852
         12  |   .3867225   .0516664     7.48   0.000     .2628098    .5106352
         13  |   .3832446   .0512517     7.48   0.000     .2603263    .5061628
         14  |   .3822786   .0512517     7.46   0.000     .2593606    .5051967
         15  |   .3921516   .0345602    11.35   0.000      .309265    .4750382
         16  |   .3747228   .0649911     5.77   0.001     .2188531    .5305924
         17  |   .3710352   .0693766     5.35   0.001     .2046476    .5374228
         18  |   .3550373   .0700451     5.07   0.002     .1870465    .5230281
         19  |   .3555339    .069558     5.11   0.002     .1887113    .5223564
         20  |   .3335527   .0725758     4.60   0.003     .1594924     .507613
         21  |   .3171622   .0731348     4.34   0.004     .1417614     .492563
         22  |   .3079386   .0716093     4.30   0.004     .1361962    .4796809
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2262
                                                Largest FMI       =     0.0547
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      22.03
                                                        avg       =      23.07
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   22.1)   =       6.08
Within VCE type:       Robust                   Prob > F          =     0.0000

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
    vdclpriv |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0095112   .0051928    -1.83   0.080    -.0202479    .0012255
          1  |  -.0060827   .0041639    -1.46   0.157    -.0146919    .0025265
          3  |   .0163575   .0156634     1.04   0.307    -.0160282    .0487432
          4  |   .0312557   .0182181     1.72   0.100     -.006412    .0689234
          5  |   .0339012   .0189087     1.79   0.086    -.0051944    .0729969
          6  |   .0530433   .0303328     1.75   0.094    -.0096748    .1157614
          7  |   .0585729   .0310647     1.89   0.072    -.0056633    .1228091
          8  |   .0556673   .0309971     1.80   0.086    -.0084318    .1197665
          9  |   .0618647   .0310727     1.99   0.059    -.0024256    .1261549
         10  |   .0742743   .0358299     2.07   0.050     .0001197    .1484289
             |
  revny#year |
       1  0  |   .0132137   .0064189     2.06   0.051    -.0000581    .0264855
       1  1  |   .0112326   .0047138     2.38   0.026     .0014865    .0209788
       1  3  |   .0785889   .0263087     2.99   0.007     .0241929    .1329849
       1  4  |   .1623578   .0375132     4.33   0.000     .0847954    .2399203
       1  5  |   .1640875   .0372262     4.41   0.000     .0871164    .2410586
       1  6  |   .1433292   .0387561     3.70   0.001     .0631774    .2234809
       1  7  |   .1403162   .0407556     3.44   0.002     .0560158    .2246167
       1  8  |   .1459046    .042551     3.43   0.002     .0578858    .2339234
       1  9  |   .1310796   .0419985     3.12   0.005     .0441353    .2180239
       1 10  |   .1199693   .0472164     2.54   0.019     .0220568    .2178818
             |
       _cons |   .5307958   .0247227    21.47   0.000      .479679    .5819126
-------------+----------------------------------------------------------------
     sigma_u |  .20706769
     sigma_e |  .11755335
         rho |  .75626439   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     4.7303
                                                Largest FMI       =     0.0698
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      21.64
                                                        avg       =      22.98
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5212846   .0269776    19.32   0.000     .4655057    .5770635
          2  |   .5247131   .0268167    19.57   0.000     .4692668    .5801594
          3  |   .5307958   .0247227    21.47   0.000      .479679    .5819126
          4  |   .5471532    .016923    32.33   0.000     .5121632    .5821433
          5  |   .5620515   .0131286    42.81   0.000     .5349068    .5891961
          6  |    .564697   .0115701    48.81   0.000     .5407746    .5886194
          7  |   .5838391   .0151524    38.53   0.000     .5525058    .6151723
          8  |   .5893687   .0171911    34.28   0.000     .5538118    .6249255
          9  |   .5864631   .0176814    33.17   0.000     .5498879    .6230383
         10  |   .5926604   .0173876    34.09   0.000     .5566234    .6286975
         11  |   .6050701   .0255499    23.68   0.000     .5521355    .6580047
         12  |   .5344983   .0259279    20.61   0.000     .4808896    .5881069
         13  |   .5359457     .02578    20.79   0.000     .4826429    .5892485
         14  |   .5307958   .0247227    21.47   0.000      .479679    .5819126
         15  |   .6257421   .0281663    22.22   0.000     .5675054    .6839788
         16  |   .7244093   .0261619    27.69   0.000      .670317    .7785016
         17  |   .7287845   .0272884    26.71   0.000     .6723599    .7852092
         18  |   .7271683    .031349    23.20   0.000      .662334    .7920025
         19  |   .7296849   .0313799    23.25   0.000     .6647655    .7946043
         20  |   .7323677   .0322979    22.68   0.000     .6655424     .799193
         21  |     .72374   .0328774    22.01   0.000     .6556352    .7918449
         22  |   .7250394   .0337262    21.50   0.000     .6550272    .7950515
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg vdclpriv i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0497                         Obs per group: min =        11
       between = 0.2439                                        avg =      11.0
       overall = 0.1449                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.2799                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdclpriv |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.006513   .0046932    -1.39   0.203    -.0173355    .0043095
          1  |  -.0010025   .0019538    -0.51   0.622     -.005508     .003503
          3  |   .0409177   .0337698     1.21   0.260    -.0369556    .1187911
          4  |   .0476178   .0344865     1.38   0.205    -.0319082    .1271438
          5  |    .048259   .0345879     1.40   0.200    -.0315009    .1280188
          6  |   .0497216   .0344663     1.44   0.187    -.0297579    .1292011
          7  |   .0499365   .0345265     1.45   0.186    -.0296819    .1295548
          8  |   .0534115   .0340575     1.57   0.155    -.0251252    .1319483
          9  |   .0479823   .0341623     1.40   0.198    -.0307962    .1267608
         10  |   .0493414   .0342295     1.44   0.187    -.0295919    .1282747
             |
  revny#year |
       1  0  |   .0109569   .0060387     1.81   0.107    -.0029683    .0248821
       1  1  |   .0019684   .0015327     1.28   0.235     -.001566    .0055028
       1  3  |  -.0310448   .0557624    -0.56   0.593     -.159633    .0975435
       1  4  |  -.0551736   .0913434    -0.60   0.563    -.2658119    .1554646
       1  5  |  -.0595024   .0964591    -0.62   0.554    -.2819375    .1629328
       1  6  |  -.0769629   .0969832    -0.79   0.450    -.3006064    .1466807
       1  7  |  -.0766812   .0958485    -0.80   0.447    -.2977082    .1443458
       1  8  |  -.1021374   .1005442    -1.02   0.339    -.3339927    .1297179
       1  9  |  -.1130987   .0994442    -1.14   0.288    -.3424175      .11622
       1 10  |  -.1236814   .0979139    -1.26   0.242    -.3494713    .1021085
             |
       _cons |   .3822786   .0512517     7.46   0.000     .2640921    .5004652
-------------+----------------------------------------------------------------
     sigma_u |  .19004928
     sigma_e |  .11997804
         rho |  .71503179   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3757656   .0506317     7.42   0.000     .2765294    .4750019
       0  1  |   .3812762   .0509344     7.49   0.000     .2814465    .4811058
       0  2  |   .3822786   .0512517     7.46   0.000     .2818272      .48273
       0  3  |   .4231963   .0260568    16.24   0.000      .372126    .4742667
       0  4  |   .4298964   .0282718    15.21   0.000     .3744846    .4853082
       0  5  |   .4305376   .0289149    14.89   0.000     .3738654    .4872098
       0  6  |   .4320002   .0293352    14.73   0.000     .3745042    .4894962
       0  7  |   .4322151   .0288437    14.98   0.000     .3756825    .4887477
       0  8  |   .4356902   .0300638    14.49   0.000     .3767662    .4946141
       0  9  |   .4302609    .028299    15.20   0.000     .3747959    .4857259
       0 10  |     .43162   .0290475    14.86   0.000      .374688     .488552
       1  0  |   .3867225   .0516664     7.48   0.000     .2854583    .4879868
       1  1  |   .3832446   .0512517     7.48   0.000      .282793    .4836961
       1  2  |   .3822786   .0512517     7.46   0.000     .2818272      .48273
       1  3  |   .3921516   .0345602    11.35   0.000     .3244148    .4598884
       1  4  |   .3747228   .0649911     5.77   0.000     .2473426    .5021029
       1  5  |   .3710352   .0693766     5.35   0.000     .2350595    .5070109
       1  6  |   .3550373   .0700451     5.07   0.000     .2177514    .4923232
       1  7  |   .3555339    .069558     5.11   0.000     .2192027     .491865
       1  8  |   .3335527   .0725758     4.60   0.000     .1913067    .4757987
       1  9  |   .3171622   .0731348     4.34   0.000     .1738207    .4605037
       1 10  |   .3079386   .0716093     4.30   0.000     .1675869    .4482903
------------------------------------------------------------------------------

. xtreg vdclpriv i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       892
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.2537                         Obs per group: min =         5
       between = 0.0146                                        avg =      10.4
       overall = 0.0564                                        max =        11

                                                F(20,25)           =     10.63
corr(u_i, Xb)  = -0.0465                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
    vdclpriv |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0095281    .005196    -1.83   0.079    -.0202294    .0011732
          1  |  -.0060952   .0041677    -1.46   0.156    -.0146788    .0024883
          3  |   .0163719    .015685     1.04   0.307     -.015932    .0486758
          4  |   .0312814    .018242     1.71   0.099    -.0062888    .0688516
          5  |   .0339259   .0189339     1.79   0.085    -.0050692     .072921
          6  |   .0533688   .0305692     1.75   0.093    -.0095896    .1163273
          7  |   .0671846   .0317451     2.12   0.044     .0018044    .1325649
          8  |   .0639371   .0316364     2.02   0.054    -.0012193    .1290936
          9  |   .0678603   .0330135     2.06   0.050    -.0001322    .1358528
         10  |   .0862791   .0397284     2.17   0.040     .0044568    .1681013
             |
  revny#year |
       1  0  |   .0132306     .00642     2.06   0.050     8.37e-06    .0264529
       1  1  |   .0112452   .0047166     2.38   0.025      .001531    .0209593
       1  3  |   .0785744   .0263222     2.99   0.006     .0243629     .132786
       1  4  |   .1623321    .037534     4.32   0.000     .0850293    .2396349
       1  5  |   .1522799   .0382286     3.98   0.001     .0735466    .2310132
       1  6  |   .1299386   .0428893     3.03   0.006     .0416065    .2182708
       1  7  |   .1150485   .0483905     2.38   0.025     .0153864    .2147107
       1  8  |   .1213028   .0499478     2.43   0.023     .0184333    .2241723
       1  9  |   .1214936   .0450478     2.70   0.012      .028716    .2142713
       1 10  |   .1091078   .0494398     2.21   0.037     .0072847    .2109309
             |
       _cons |   .5296326   .0218422    24.25   0.000     .4846477    .5746175
-------------+----------------------------------------------------------------
     sigma_u |  .20805701
     sigma_e |  .11266864
         rho |  .77324434   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        892
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .5201045   .0242777    21.42   0.000     .4725211    .5676879
       0  1  |   .5235374   .0240699    21.75   0.000     .4763612    .5707136
       0  2  |   .5296326   .0218422    24.25   0.000     .4868227    .5724426
       0  3  |   .5460046   .0134313    40.65   0.000     .5196796    .5723295
       0  4  |    .560914   .0109469    51.24   0.000     .5394585    .5823695
       0  5  |   .5635585   .0099685    56.53   0.000     .5440207    .5830964
       0  6  |   .5830015   .0183582    31.76   0.000       .54702    .6189829
       0  7  |   .5968172   .0212167    28.13   0.000     .5552333    .6384012
       0  8  |   .5935698   .0215019    27.61   0.000     .5514269    .6357126
       0  9  |   .5974929   .0216755    27.57   0.000     .5550098    .6399761
       0 10  |   .6159117   .0314602    19.58   0.000     .5542508    .6775726
       1  0  |   .5333351   .0228452    23.35   0.000     .4885594    .5781108
       1  1  |   .5347825   .0227133    23.54   0.000     .4902653    .5792997
       1  2  |   .5296326   .0218422    24.25   0.000     .4868227    .5724426
       1  3  |    .624579   .0256208    24.38   0.000     .5743632    .6747947
       1  4  |   .7232461   .0289714    24.96   0.000     .6664633    .7800289
       1  5  |   .7158384   .0306302    23.37   0.000     .6558043    .7758726
       1  6  |   .7129401   .0344317    20.71   0.000     .6454552    .7804251
       1  7  |   .7118658   .0326281    21.82   0.000     .6479159    .7758156
       1  8  |   .7148725   .0336685    21.23   0.000     .6488834    .7808616
       1  9  |   .7189866   .0304939    23.58   0.000     .6592196    .7787535
       1 10  |   .7250195   .0290559    24.95   0.000      .668071    .7819679
------------------------------------------------------------------------------

. 
. *==================================================
. * EFFECT OF REVOLUTION ON THE RULE OF LAW, MATCHED 
. *    CASES (FIGURE 9.13)
. *==================================================
. * Compared to matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdrule"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
      vdrule |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |    .002275    .002246     1.01   0.347    -.0031117    .0076618
          1  |   4.32e-06   .0028477     0.00   0.999    -.0068255    .0068341
          3  |   .0392868   .0282132     1.39   0.209    -.0283776    .1069513
          4  |   .0367349   .0302167     1.22   0.266    -.0357345    .1092043
          5  |   .0352652   .0307177     1.15   0.291    -.0384057    .1089362
          6  |   .0347093   .0323437     1.07   0.321    -.0428613    .1122799
          7  |   .0245964   .0320168     0.77   0.469    -.0521903    .1013831
          8  |   .0179809   .0324376     0.55   0.598    -.0598149    .0957767
          9  |   .0181701   .0322957     0.56   0.592    -.0592854    .0956255
         10  |   .0192582   .0325104     0.59   0.573    -.0587122    .0972286
             |
  revny#year |
       1  0  |   .0007092   .0045116     0.16   0.880     -.010111    .0115294
       1  1  |    .003724   .0042723     0.87   0.414    -.0065223    .0139704
       1  3  |  -.0216129   .0344037    -0.63   0.551    -.1041242    .0608983
       1  4  |   .0035042   .0706698     0.05   0.962    -.1659849    .1729933
       1  5  |   .0044829   .0718382     0.06   0.952    -.1678082    .1767741
       1  6  |   .0041584   .0707694     0.06   0.955    -.1655696    .1738863
       1  7  |   .0104578   .0709554     0.15   0.887    -.1597162    .1806318
       1  8  |  -.0022663   .0874706    -0.03   0.980    -.2120492    .2075166
       1  9  |  -.0073346   .0831899    -0.09   0.932    -.2068508    .1921816
       1 10  |  -.0079183   .0830262    -0.10   0.927    -.2070419    .1912053
             |
       _cons |   .3235926   .0327562     9.88   0.000     .2450326    .4021526
-------------+----------------------------------------------------------------
     sigma_u |  .20447845
     sigma_e |   .0934743
         rho |  .82714859   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3258676   .0334171     9.75   0.000     .2457227    .4060126
          2  |   .3235969   .0327181     9.89   0.000     .2451283    .4020655
          3  |   .3235926   .0327562     9.88   0.000     .2450326    .4021526
          4  |   .3628794   .0216351    16.77   0.000     .3109914    .4147674
          5  |   .3603275   .0264737    13.61   0.000     .2968349      .42382
          6  |   .3588578   .0268619    13.36   0.000     .2944344    .4232812
          7  |   .3583018   .0289531    12.38   0.000     .2888629    .4277407
          8  |    .348189    .026699    13.04   0.000      .284156    .4122219
          9  |   .3415735   .0289123    11.81   0.000     .2722323    .4109146
         10  |   .3417626   .0286114    11.94   0.000     .2731432    .4103821
         11  |   .3428508   .0289963    11.82   0.000     .2733084    .4123932
         12  |   .3265768   .0342731     9.53   0.000     .2443789    .4087747
         13  |   .3273209   .0341988     9.57   0.000     .2453011    .4093408
         14  |   .3235926   .0327562     9.88   0.000     .2450326    .4021526
         15  |   .3412665    .025885    13.18   0.000     .2791859    .4033471
         16  |   .3638317   .0466606     7.80   0.000     .2519246    .4757388
         17  |   .3633407   .0481487     7.55   0.000     .2478645     .478817
         18  |   .3624602   .0458029     7.91   0.000       .25261    .4723104
         19  |   .3586467   .0475415     7.54   0.000     .2446269    .4726666
         20  |   .3393072   .0622546     5.45   0.001     .1900006    .4886138
         21  |    .334428   .0588025     5.69   0.001     .1934006    .4754555
         22  |   .3349325   .0586208     5.71   0.001     .1943408    .4755242
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        946

Group variable: diffid                          Number of groups  =         86
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2589
                                                Largest FMI       =     0.1322
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      19.88
                                                        avg       =      22.76
                                                        max       =      23.21
Model F test:       Equal FMI                   F(  20,   21.9)   =       3.39
Within VCE type:       Robust                   Prob > F          =     0.0033

                                (Within VCE adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
      vdrule |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0056474   .0065844    -0.86   0.400    -.0192613    .0079665
          1  |   .0029202   .0031157     0.94   0.358    -.0035218    .0093622
          3  |   .0038748   .0029837     1.30   0.207    -.0022943     .010044
          4  |   .0135715   .0083995     1.62   0.120    -.0037953    .0309383
          5  |   .0148378     .01082     1.37   0.183    -.0075336    .0372091
          6  |   .0146521   .0112925     1.30   0.207    -.0086988    .0380031
          7  |   .0207858    .012487     1.66   0.110    -.0050626    .0466343
          8  |   .0194602   .0129766     1.50   0.148     -.007418    .0463385
          9  |   .0203719   .0128733     1.58   0.129    -.0064347    .0471784
         10  |   .0214124   .0141736     1.51   0.147    -.0081646    .0509895
             |
  revny#year |
       1  0  |   .0046847   .0084042     0.56   0.583    -.0126919    .0220612
       1  1  |  -.0069819   .0065398    -1.07   0.297    -.0205036    .0065397
       1  3  |   .1037647    .029119     3.56   0.002     .0435583    .1639711
       1  4  |   .1569064   .0336096     4.67   0.000     .0874153    .2263976
       1  5  |   .1846904   .0397192     4.65   0.000     .1025632    .2668176
       1  6  |   .1807701   .0416928     4.34   0.000     .0945565    .2669837
       1  7  |   .1711301    .044075     3.88   0.001     .0799672    .2622929
       1  8  |   .1680324   .0445656     3.77   0.001     .0758441    .2602208
       1  9  |   .1604228   .0473332     3.39   0.003     .0624543    .2583913
       1 10  |   .1633511   .0491147     3.33   0.003     .0614141     .265288
             |
       _cons |   .3293861   .0155956    21.12   0.000     .2971405    .3616316
-------------+----------------------------------------------------------------
     sigma_u |  .22338837
     sigma_e |  .08741571
         rho |  .86720554   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        946
                                                Average RVI       =     7.7018
                                                Largest FMI       =     0.0937
                                                Complete DF       =         25
DF adjustment:   Small sample                   DF:     min       =      20.98
                                                        avg       =      22.83
Within VCE type: Delta-method                           max       =      23.21

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3237386    .017045    18.99   0.000     .2884965    .3589808
          2  |   .3323063   .0158024    21.03   0.000     .2996333    .3649793
          3  |   .3293861   .0155956    21.12   0.000     .2971405    .3616316
          4  |   .3332609   .0149091    22.35   0.000     .3024348     .364087
          5  |   .3429576   .0141714    24.20   0.000     .3136567    .3722585
          6  |   .3442238    .014494    23.75   0.000      .314256    .3741916
          7  |   .3440382   .0150437    22.87   0.000     .3129318    .3751446
          8  |   .3501719   .0168366    20.80   0.000     .3153387     .385005
          9  |   .3488463   .0160083    21.79   0.000     .3157099    .3819827
         10  |   .3497579   .0155142    22.54   0.000     .3175367    .3819791
         11  |   .3507985   .0169378    20.71   0.000     .3155723    .3860246
         12  |   .3284233   .0151192    21.72   0.000     .2971628    .3596838
         13  |   .3253244   .0153312    21.22   0.000     .2936256    .3570231
         14  |   .3293861   .0155956    21.12   0.000     .2971405    .3616316
         15  |   .4370256   .0231597    18.87   0.000     .3891405    .4849106
         16  |    .499864   .0223221    22.39   0.000     .4537108    .5460173
         17  |   .5289142    .026581    19.90   0.000     .4739499    .5838785
         18  |   .5248083   .0281513    18.64   0.000     .4665921    .5830245
         19  |    .521302   .0287297    18.15   0.000     .4618547    .5807493
         20  |   .5168787   .0303627    17.02   0.000     .4540317    .5797258
         21  |   .5101807   .0340883    14.97   0.000     .4395548    .5808067
         22  |   .5141495   .0354432    14.51   0.000     .4404792    .5878198
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 26 revolutions and 60 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 4.1 percent of observations

. * Complete case sample as robustness test
. xtreg vdrule i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0281                         Obs per group: min =        11
       between = 0.0086                                        avg =      11.0
       overall = 0.0023                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.0030                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdrule |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |    .002275    .002246     1.01   0.341    -.0029043    .0074544
          1  |   4.32e-06   .0028477     0.00   0.999    -.0065626    .0065712
          3  |   .0392868   .0282132     1.39   0.201     -.025773    .1043467
          4  |   .0367349   .0302167     1.22   0.259    -.0329449    .1064147
          5  |   .0352652   .0307177     1.15   0.284    -.0355699    .1061003
          6  |   .0347093   .0323437     1.07   0.315    -.0398754    .1092939
          7  |   .0245964   .0320168     0.77   0.464    -.0492345    .0984273
          8  |   .0179809   .0324376     0.55   0.595    -.0568203    .0927821
          9  |   .0181701   .0322957     0.56   0.589    -.0563038     .092644
         10  |   .0192582   .0325104     0.59   0.570    -.0557109    .0942273
             |
  revny#year |
       1  0  |   .0007092   .0045116     0.16   0.879    -.0096945    .0111128
       1  1  |    .003724   .0042723     0.87   0.409    -.0061279     .013576
       1  3  |  -.0216129   .0344037    -0.63   0.547    -.1009481    .0577222
       1  4  |   .0035042   .0706698     0.05   0.962    -.1594607    .1664691
       1  5  |   .0044829   .0718382     0.06   0.952    -.1611762     .170142
       1  6  |   .0041584   .0707694     0.06   0.955    -.1590362    .1673529
       1  7  |   .0104578   .0709554     0.15   0.886    -.1531657    .1740812
       1  8  |  -.0022663   .0874706    -0.03   0.980    -.2039739    .1994414
       1  9  |  -.0073346   .0831899    -0.09   0.932    -.1991707    .1845015
       1 10  |  -.0079183   .0830262    -0.10   0.926     -.199377    .1835404
             |
       _cons |   .3235926   .0327562     9.88   0.000     .2480566    .3991285
-------------+----------------------------------------------------------------
     sigma_u |  .20447845
     sigma_e |   .0934743
         rho |  .82714859   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3258676   .0334171     9.75   0.000     .2603714    .3913639
       0  1  |   .3235969   .0327181     9.89   0.000     .2594705    .3877232
       0  2  |   .3235926   .0327562     9.88   0.000     .2593916    .3877936
       0  3  |   .3628794   .0216351    16.77   0.000     .3204754    .4052834
       0  4  |   .3603275   .0264737    13.61   0.000     .3084399     .412215
       0  5  |   .3588578   .0268619    13.36   0.000     .3062095    .4115061
       0  6  |   .3583018   .0289531    12.38   0.000     .3015548    .4150489
       0  7  |    .348189    .026699    13.04   0.000     .2958598    .4005181
       0  8  |   .3415735   .0289123    11.81   0.000     .2849063    .3982406
       0  9  |   .3417626   .0286114    11.94   0.000     .2856853      .39784
       0 10  |   .3428508   .0289963    11.82   0.000     .2860191    .3996824
       1  0  |   .3265768   .0342731     9.53   0.000     .2594028    .3937508
       1  1  |   .3273209   .0341988     9.57   0.000     .2602925    .3943494
       1  2  |   .3235926   .0327562     9.88   0.000     .2593916    .3877936
       1  3  |   .3412665    .025885    13.18   0.000     .2905328    .3920002
       1  4  |   .3638317   .0466606     7.80   0.000     .2723786    .4552847
       1  5  |   .3633407   .0481487     7.55   0.000     .2689709    .4577105
       1  6  |   .3624602   .0458029     7.91   0.000     .2726881    .4522322
       1  7  |   .3586467   .0475415     7.54   0.000     .2654672    .4518263
       1  8  |   .3393072   .0622546     5.45   0.000     .2172905    .4613239
       1  9  |    .334428   .0588025     5.69   0.000     .2191772    .4496789
       1 10  |   .3349325   .0586208     5.71   0.000     .2200377    .4498272
------------------------------------------------------------------------------

. xtreg vdrule i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =      1432
Group variable: diffid                          Number of groups   =        86

R-sq:  within  = 0.2714                         Obs per group: min =        11
       between = 0.0087                                        avg =      16.7
       overall = 0.0338                                        max =        65

                                                F(20,25)           =      8.86
corr(u_i, Xb)  = -0.1497                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
      vdrule |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0056474   .0065603    -0.86   0.398    -.0191587    .0078639
          1  |   .0029202   .0031043     0.94   0.356    -.0034732    .0093137
          3  |   .0038748   .0029728     1.30   0.204    -.0022478    .0099975
          4  |   .0135715   .0083688     1.62   0.117    -.0036644    .0308074
          5  |   .0148378   .0107804     1.38   0.181     -.007365    .0370405
          6  |   .0140053   .0112664     1.24   0.225    -.0091984    .0372089
          7  |   .0170009   .0128971     1.32   0.199    -.0095611    .0435629
          8  |   .0179079   .0153699     1.17   0.255    -.0137471    .0495629
          9  |   .0241056    .012048     2.00   0.056    -.0007077    .0489189
         10  |   .0252625   .0137773     1.83   0.079    -.0031124    .0536374
             |
  revny#year |
       1  0  |   .0046847   .0083735     0.56   0.581    -.0125609    .0219303
       1  1  |  -.0069819   .0065159    -1.07   0.294    -.0204017    .0064378
       1  3  |   .1037647   .0290126     3.58   0.001      .044012    .1635173
       1  4  |   .1569064   .0334868     4.69   0.000      .087939    .2258739
       1  5  |   .1772196   .0417552     4.24   0.000     .0912231    .2632162
       1  6  |   .1762849   .0427118     4.13   0.000     .0883183    .2642515
       1  7  |   .1746036   .0475807     3.67   0.001     .0766092     .272598
       1  8  |   .1734572   .0505919     3.43   0.002     .0692612    .2776533
       1  9  |    .148662   .0484039     3.07   0.005     .0489724    .2483517
       1 10  |   .1664833   .0504618     3.30   0.003     .0625553    .2704112
             |
       _cons |   .3532889   .0219143    16.12   0.000     .3081556    .3984222
-------------+----------------------------------------------------------------
     sigma_u |  .22683884
     sigma_e |  .08371776
         rho |   .8801211   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =      1,432
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3476415   .0231137    15.04   0.000     .3023395    .3929434
       0  1  |   .3562091   .0220741    16.14   0.000     .3129446    .3994736
       0  2  |   .3532889   .0219143    16.12   0.000     .3103377    .3962401
       0  3  |   .3571637   .0212035    16.84   0.000     .3156055    .3987219
       0  4  |   .3668604   .0197385    18.59   0.000     .3281737    .4055471
       0  5  |   .3681266   .0194901    18.89   0.000     .3299267    .4063265
       0  6  |   .3672941   .0199587    18.40   0.000     .3281757    .4064125
       0  7  |   .3702898   .0212838    17.40   0.000     .3285744    .4120052
       0  8  |   .3711968   .0226011    16.42   0.000     .3268995    .4154941
       0  9  |   .3773945   .0207559    18.18   0.000     .3367136    .4180754
       0 10  |   .3785514   .0203889    18.57   0.000     .3385899    .4185129
       1  0  |   .3523261   .0209605    16.81   0.000     .3112444    .3934079
       1  1  |   .3492272   .0209899    16.64   0.000     .3080878    .3903665
       1  2  |   .3532889   .0219143    16.12   0.000     .3103377    .3962401
       1  3  |   .4609284   .0243334    18.94   0.000     .4132359    .5086209
       1  4  |   .5237668   .0179462    29.19   0.000     .4885929    .5589408
       1  5  |   .5453463   .0230599    23.65   0.000     .5001498    .5905428
       1  6  |    .543579   .0234353    23.19   0.000     .4976468    .5895113
       1  7  |   .5448934   .0272689    19.98   0.000     .4914473    .5983395
       1  8  |    .544654   .0291716    18.67   0.000     .4874788    .6018293
       1  9  |   .5260565   .0280694    18.74   0.000     .4710415    .5810715
       1 10  |   .5450347   .0316238    17.23   0.000     .4830532    .6070162
------------------------------------------------------------------------------

. 
. *============================================================
. * EFFECT OF REVOLUTION ON GOVERNMENT ACCOUNTABILITY, MATCHED 
. *    CASES (FIGURE 9.14)
. *============================================================
. * Compared to matched samples
. * Multiple imputation
. clear

. use matcheddiffindifflong.dta, clear

. global yvar = "vdaccount"

. quietly: chp9matchmultimp

. * Successful social vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & leftist==1 [pweig
> ht=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        374

Group variable: diffid                          Number of groups  =         34
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
                                                DF:     min       =       6.55
                                                        avg       =       6.55
DF adjustment:   Small sample                           max       =       6.55
                                                F(   8,      .)   =          .
Within VCE type:       Robust                   Prob > F          =          .

                                 (Within VCE adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
   vdaccount |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0008351    .003728    -0.22   0.830     -.009776    .0081058
          1  |  -.0004808   .0023134    -0.21   0.842    -.0060291    .0050675
          3  |   .0282409   .0217011     1.30   0.237    -.0238053    .0802872
          4  |    .024542   .0231576     1.06   0.327    -.0309975    .0800815
          5  |   .0210232   .0254479     0.83   0.438    -.0400092    .0820556
          6  |   .0200549   .0258035     0.78   0.464    -.0418301      .08194
          7  |  -.0016715   .0301779    -0.06   0.957    -.0740478    .0707048
          8  |  -.0125119   .0330477    -0.38   0.717    -.0917709    .0667471
          9  |  -.0121516   .0334611    -0.36   0.728     -.092402    .0680989
         10  |  -.0089237   .0338483    -0.26   0.800    -.0901028    .0722554
             |
  revny#year |
       1  0  |   .0077229   .0037873     2.04   0.084    -.0013603     .016806
       1  1  |   .0043815   .0038576     1.14   0.296    -.0048703    .0136334
       1  3  |   .0142917   .0346193     0.41   0.693    -.0687367    .0973201
       1  4  |  -.0111671   .0685034    -0.16   0.875    -.1754605    .1531262
       1  5  |  -.0280893   .0746833    -0.38   0.719     -.207204    .1510255
       1  6  |  -.0346062   .0731918    -0.47   0.652    -.2101439    .1409314
       1  7  |   -.013684   .0679297    -0.20   0.846    -.1766013    .1492333
       1  8  |   .0007689   .0787216     0.01   0.992    -.1880309    .1895687
       1  9  |  -.0151303   .0744715    -0.20   0.845    -.1937372    .1634765
       1 10  |  -.0230002   .0764717    -0.30   0.773    -.2064039    .1604036
             |
       _cons |   .3659158   .0321196    11.39   0.000     .2888828    .4429489
-------------+----------------------------------------------------------------
     sigma_u |  .12890034
     sigma_e |  .09220383
         rho |  .66152013   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        374
                                                Average RVI       =     0.0000
                                                Largest FMI       =     0.0000
                                                Complete DF       =          8
DF adjustment:   Small sample                   DF:     min       =       6.55
                                                        avg       =       6.55
Within VCE type: Delta-method                           max       =       6.55

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3650807   .0332088    10.99   0.000     .2854353    .4447261
          2  |   .3654351   .0322435    11.33   0.000     .2881047    .4427655
          3  |   .3659158   .0321196    11.39   0.000     .2888828    .4429489
          4  |   .3941568   .0230907    17.07   0.000     .3387778    .4495357
          5  |   .3904579   .0279176    13.99   0.000     .3235025    .4574132
          6  |    .386939   .0311577    12.42   0.000     .3122128    .4616652
          7  |   .3859708   .0312044    12.37   0.000     .3111326    .4608089
          8  |   .3642443   .0264163    13.79   0.000     .3008895    .4275992
          9  |    .353404   .0250901    14.09   0.000     .2932297    .4135782
         10  |   .3537643   .0244005    14.50   0.000     .2952439    .4122847
         11  |   .3569921   .0248273    14.38   0.000     .2974483    .4165359
         12  |   .3728036   .0338005    11.03   0.000      .291739    .4538682
         13  |   .3698166   .0327734    11.28   0.000     .2912155    .4484177
         14  |   .3659158   .0321196    11.39   0.000     .2888828    .4429489
         15  |   .4084485   .0210006    19.45   0.000     .3580822    .4588148
         16  |   .3792907   .0422349     8.98   0.000     .2779978    .4805837
         17  |   .3588498   .0451162     7.95   0.000     .2506464    .4670531
         18  |   .3513646    .044295     7.93   0.000     .2451309    .4575982
         19  |   .3505603   .0450396     7.78   0.000     .2425407    .4585799
         20  |   .3541728   .0582862     6.08   0.001     .2143837     .493962
         21  |   .3386339   .0564845     6.00   0.001     .2031659    .4741019
         22  |   .3339919   .0590226     5.66   0.001     .1924367    .4755472
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 9 revolutions and 25 matched cases

. * Results loaded into MS Excel and graphed
. * Successful urban civic vs. matched counterparts
. mi estimate, post dots saving(miest, replace): xtreg $yvar i.revny##ib(2).year if success==1 & urbancivic==1 [pw
> eight=freqwt], cluster(revid) fe

Imputations (10):
  .........10 done

Multiple-imputation estimates                   Imputations       =         10
Fixed-effects (within) regression               Number of obs     =        913

Group variable: diffid                          Number of groups  =         83
                                                Obs per group:
                                                              min =         11
                                                              avg =       11.0
                                                              max =         11
                                                Average RVI       =     0.2829
                                                Largest FMI       =     0.1788
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      17.77
                                                        avg       =      21.55
                                                        max       =      22.22
Model F test:       Equal FMI                   F(  20,   20.8)   =       4.69
Within VCE type:       Robust                   Prob > F          =     0.0005

                                (Within VCE adjusted for 25 clusters in revid)
------------------------------------------------------------------------------
   vdaccount |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.009398   .0059382    -1.58   0.128    -.0217059      .00291
          1  |  -.0018642   .0031145    -0.60   0.556    -.0083196    .0045912
          3  |   .0235639   .0135318     1.74   0.095     -.004483    .0516109
          4  |   .0328568   .0193571     1.70   0.104     -.007264    .0729777
          5  |   .0363456   .0225801     1.61   0.122    -.0104555    .0831468
          6  |   .0391915   .0247698     1.58   0.128     -.012179     .090562
          7  |   .0376482   .0252541     1.49   0.150    -.0147613    .0900577
          8  |   .0351031   .0259198     1.35   0.190    -.0187314    .0889375
          9  |   .0361834   .0277439     1.30   0.207    -.0216117    .0939785
         10  |   .0571877   .0333962     1.71   0.102    -.0122769    .1266523
             |
  revny#year |
       1  0  |   .0134726   .0128944     1.04   0.307    -.0132534    .0401985
       1  1  |   .0088155   .0070221     1.26   0.222    -.0057391    .0233701
       1  3  |   .0995359   .0255339     3.90   0.001     .0466126    .1524592
       1  4  |   .1965026    .029546     6.65   0.000     .1352635    .2577418
       1  5  |    .203657   .0306853     6.64   0.000     .1400517    .2672622
       1  6  |   .1992672   .0331822     6.01   0.000     .1304071    .2681272
       1  7  |   .1911904   .0357664     5.35   0.000     .1169061    .2654748
       1  8  |   .1906405   .0361696     5.27   0.000     .1154815    .2657995
       1  9  |   .1894434   .0371622     5.10   0.000     .1117398    .2671471
       1 10  |   .1723076   .0422931     4.07   0.001     .0833706    .2612445
             |
       _cons |   .4227567   .0206282    20.49   0.000     .3800011    .4655122
-------------+----------------------------------------------------------------
     sigma_u |  .14536136
     sigma_e |  .09466938
         rho |  .70217242   (fraction of variance due to u_i)
------------------------------------------------------------------------------
Note: sigma_u and sigma_e are combined in the original metric.

. mimrgns, at(revny=(0 1) year=(0 1 2 3 4 5 6 7 8 9 10)) predict(xb)

Multiple-imputation estimates                   Imputations       =         10
Adjusted predictions                            Number of obs     =        913
                                                Average RVI       =     6.5769
                                                Largest FMI       =     0.2340
                                                Complete DF       =         24
DF adjustment:   Small sample                   DF:     min       =      16.22
                                                        avg       =      21.11
Within VCE type: Delta-method                           max       =      22.22

Expression   : Linear prediction, predict(xb)

1._at        : revny           =           0
               year            =           0

2._at        : revny           =           0
               year            =           1

3._at        : revny           =           0
               year            =           2

4._at        : revny           =           0
               year            =           3

5._at        : revny           =           0
               year            =           4

6._at        : revny           =           0
               year            =           5

7._at        : revny           =           0
               year            =           6

8._at        : revny           =           0
               year            =           7

9._at        : revny           =           0
               year            =           8

10._at       : revny           =           0
               year            =           9

11._at       : revny           =           0
               year            =          10

12._at       : revny           =           1
               year            =           0

13._at       : revny           =           1
               year            =           1

14._at       : revny           =           1
               year            =           2

15._at       : revny           =           1
               year            =           3

16._at       : revny           =           1
               year            =           4

17._at       : revny           =           1
               year            =           5

18._at       : revny           =           1
               year            =           6

19._at       : revny           =           1
               year            =           7

20._at       : revny           =           1
               year            =           8

21._at       : revny           =           1
               year            =           9

22._at       : revny           =           1
               year            =          10

------------------------------------------------------------------------------
             |     Margin   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .4133587   .0239407    17.27   0.000     .3637375    .4629799
          2  |   .4208924   .0221011    19.04   0.000      .375084    .4667008
          3  |   .4227567   .0206282    20.49   0.000     .3800011    .4655122
          4  |   .4463206   .0144308    30.93   0.000     .4164102    .4762309
          5  |   .4556135   .0129492    35.18   0.000     .4287742    .4824529
          6  |   .4591023   .0131633    34.88   0.000     .4318191    .4863855
          7  |   .4619482   .0140951    32.77   0.000     .4326756    .4912207
          8  |   .4604049   .0143983    31.98   0.000     .4304292    .4903805
          9  |   .4578597   .0143669    31.87   0.000     .4278318    .4878876
         10  |   .4589401   .0161173    28.47   0.000     .4248101    .4930702
         11  |   .4799444   .0241098    19.91   0.000     .4295815    .5303072
         12  |   .4268313   .0223693    19.08   0.000     .3804671    .4731954
         13  |   .4297079   .0216811    19.82   0.000     .3847701    .4746457
         14  |   .4227567   .0206282    20.49   0.000     .3800011    .4655122
         15  |   .5458565   .0219477    24.87   0.000     .5003661    .5913469
         16  |   .6521161   .0192179    33.93   0.000     .6122838    .6919485
         17  |   .6627592   .0217362    30.49   0.000     .6177006    .7078178
         18  |   .6612154   .0246829    26.79   0.000     .6099966    .7124341
         19  |   .6515953   .0274403    23.75   0.000     .5946067    .7085839
         20  |   .6485002   .0286924    22.60   0.000     .5888455     .708155
         21  |   .6483835   .0296613    21.86   0.000     .5863675    .7103995
         22  |   .6522519   .0306856    21.26   0.000     .5874666    .7170373
------------------------------------------------------------------------------

. display "Regression contained " e(N_clust_mi) " revolutions and " (e(N_g_mi) - e(N_clust_mi)) " matched cases"
Regression contained 25 revolutions and 58 matched cases

. * Results loaded into MS Excel and graphed
. display "Data was imputed for " round((100 * sec/(fir + sec)), .1) " percent of observations"
Data was imputed for 5 percent of observations

. * Complete case sample as robustness test
. use matcheddiffindifflong.dta, clear

. xtreg vdaccount i.revny##ib(2).year if success==1 & leftist==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       374
Group variable: diffid                          Number of groups   =        34

R-sq:  within  = 0.0398                         Obs per group: min =        11
       between = 0.0287                                        avg =      11.0
       overall = 0.0140                                        max =        11

                                                F(8,8)             =         .
corr(u_i, Xb)  = 0.0331                         Prob > F           =         .

                                  (Std. Err. adjusted for 9 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   vdaccount |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |  -.0008351    .003728    -0.22   0.828    -.0094319    .0077617
          1  |  -.0004808   .0023134    -0.21   0.841    -.0058155     .004854
          3  |   .0282409   .0217011     1.30   0.229    -.0218019    .0782837
          4  |    .024542   .0231576     1.06   0.320    -.0288596    .0779436
          5  |   .0210232   .0254479     0.83   0.433    -.0376599    .0797062
          6  |   .0200549   .0258035     0.78   0.459    -.0394479    .0795578
          7  |  -.0016715   .0301779    -0.06   0.957    -.0712618    .0679188
          8  |  -.0125119   .0330477    -0.38   0.715    -.0887199    .0636962
          9  |  -.0121516   .0334611    -0.36   0.726    -.0893129    .0650098
         10  |  -.0089237   .0338483    -0.26   0.799     -.086978    .0691305
             |
  revny#year |
       1  0  |   .0077229   .0037873     2.04   0.076    -.0010106    .0164564
       1  1  |   .0043815   .0038576     1.14   0.289    -.0045142    .0132772
       1  3  |   .0142917   .0346193     0.41   0.691    -.0655406    .0941241
       1  4  |  -.0111671   .0685034    -0.16   0.875    -.1691363    .1468021
       1  5  |  -.0280893   .0746833    -0.38   0.717    -.2003093    .1441308
       1  6  |  -.0346062   .0731918    -0.47   0.649    -.2033869    .1341744
       1  7  |   -.013684   .0679297    -0.20   0.845    -.1703301     .142962
       1  8  |   .0007689   .0787216     0.01   0.992    -.1807634    .1823012
       1  9  |  -.0151303   .0744715    -0.20   0.844     -.186862    .1566013
       1 10  |  -.0230002   .0764717    -0.30   0.771    -.1993441    .1533438
             |
       _cons |   .3659158   .0321196    11.39   0.000      .291848    .4399837
-------------+----------------------------------------------------------------
     sigma_u |  .12890034
     sigma_e |  .09220383
         rho |  .66152013   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        374
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .3650807   .0332088    10.99   0.000     .2999927    .4301688
       0  1  |   .3654351   .0322435    11.33   0.000     .3022389    .4286312
       0  2  |   .3659158   .0321196    11.39   0.000     .3029627     .428869
       0  3  |   .3941568   .0230907    17.07   0.000     .3488998    .4394137
       0  4  |   .3904579   .0279176    13.99   0.000     .3357404    .4451753
       0  5  |    .386939   .0311577    12.42   0.000     .3258711     .448007
       0  6  |   .3859708   .0312044    12.37   0.000     .3248114    .4471302
       0  7  |   .3642443   .0264163    13.79   0.000     .3124694    .4160193
       0  8  |    .353404   .0250901    14.09   0.000     .3042282    .4025797
       0  9  |   .3537643   .0244005    14.50   0.000     .3059401    .4015884
       0 10  |   .3569921   .0248273    14.38   0.000     .3083316    .4056527
       1  0  |   .3728036   .0338005    11.03   0.000     .3065558    .4390514
       1  1  |   .3698166   .0327734    11.28   0.000      .305582    .4340512
       1  2  |   .3659158   .0321196    11.39   0.000     .3029627     .428869
       1  3  |   .4084485   .0210006    19.45   0.000      .367288     .449609
       1  4  |   .3792907   .0422349     8.98   0.000     .2965118    .4620697
       1  5  |   .3588498   .0451162     7.95   0.000     .2704236     .447276
       1  6  |   .3513646    .044295     7.93   0.000      .264548    .4381811
       1  7  |   .3505603   .0450396     7.78   0.000     .2622842    .4388364
       1  8  |   .3541728   .0582862     6.08   0.000      .239934    .4684117
       1  9  |   .3386339   .0564845     6.00   0.000     .2279264    .4493414
       1 10  |   .3339919   .0590226     5.66   0.000     .2183098    .4496741
------------------------------------------------------------------------------

. xtreg vdaccount i.revny##ib(2).year if success==1 & urbancivic==1 [pweight=freqwt], cluster(revid) fe
note: 1.revny omitted because of collinearity

Fixed-effects (within) regression               Number of obs      =       871
Group variable: diffid                          Number of groups   =        85

R-sq:  within  = 0.4209                         Obs per group: min =         5
       between = 0.0238                                        avg =      10.2
       overall = 0.1248                                        max =        11

                                                F(20,25)           =     14.17
corr(u_i, Xb)  = -0.1119                        Prob > F           =    0.0000

                                 (Std. Err. adjusted for 26 clusters in revid)
------------------------------------------------------------------------------
             |               Robust
   vdaccount |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
     1.revny |          0  (omitted)
             |
        year |
          0  |   -.010068   .0057417    -1.75   0.092    -.0218933    .0017572
          1  |  -.0021359   .0030038    -0.71   0.484    -.0083224    .0040505
          3  |   .0292651   .0142266     2.06   0.050    -.0000351    .0585653
          4  |   .0457071   .0226752     2.02   0.055    -.0009933    .0924075
          5  |    .050472   .0259717     1.94   0.063    -.0030177    .1039616
          6  |   .0639162   .0289548     2.21   0.037     .0042827    .1235498
          7  |   .0626279   .0289712     2.16   0.040     .0029606    .1222951
          8  |   .0640574   .0303482     2.11   0.045     .0015541    .1265607
          9  |   .0695231   .0312547     2.22   0.035     .0051529    .1338932
         10  |   .0946774   .0365028     2.59   0.016     .0194985    .1698564
             |
  revny#year |
       1  0  |   .0141426   .0127334     1.11   0.277    -.0120824    .0403676
       1  1  |   .0090872   .0070029     1.30   0.206    -.0053355    .0235099
       1  3  |   .0938348     .02615     3.59   0.001     .0399778    .1476917
       1  4  |   .1836524   .0323466     5.68   0.000     .1170333    .2502715
       1  5  |   .1756854   .0372372     4.72   0.000      .098994    .2523768
       1  6  |   .1681728   .0423991     3.97   0.001     .0808502    .2554954
       1  7  |   .1591556   .0444582     3.58   0.001     .0675922    .2507189
       1  8  |   .1677424   .0422363     3.97   0.001     .0807551    .2547297
       1  9  |   .1608504   .0416032     3.87   0.001     .0751669    .2465339
       1 10  |   .1401536   .0456183     3.07   0.005     .0462009    .2341063
             |
       _cons |   .4143745   .0178582    23.20   0.000     .3775948    .4511541
-------------+----------------------------------------------------------------
     sigma_u |  .14828094
     sigma_e |  .09143607
         rho |  .72450864   (fraction of variance due to u_i)
------------------------------------------------------------------------------

. margins i.revny#ib(2).year, noestimcheck

Adjusted predictions                            Number of obs     =        871
Model VCE    : Robust

Expression   : Linear prediction, predict()

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
  revny#year |
       0  0  |   .4043064   .0213523    18.94   0.000     .3624566    .4461562
       0  1  |   .4122385   .0193862    21.26   0.000     .3742422    .4502348
       0  2  |   .4143745   .0178582    23.20   0.000      .379373    .4493759
       0  3  |   .4436395   .0120665    36.77   0.000     .4199896    .4672895
       0  4  |   .4600815   .0152089    30.25   0.000     .4302726    .4898905
       0  5  |   .4648464   .0170522    27.26   0.000     .4314248     .498268
       0  6  |   .4782907   .0198041    24.15   0.000     .4394754     .517106
       0  7  |   .4770023   .0195799    24.36   0.000     .4386263    .5153783
       0  8  |   .4784318   .0206347    23.19   0.000     .4379887     .518875
       0  9  |   .4838975    .021383    22.63   0.000     .4419877    .5258074
       0 10  |   .5090519    .029266    17.39   0.000     .4516917    .5664121
       1  0  |   .4184491   .0196853    21.26   0.000     .3798666    .4570315
       1  1  |   .4213257   .0189926    22.18   0.000      .384101    .4585505
       1  2  |   .4143745   .0178582    23.20   0.000      .379373    .4493759
       1  3  |   .5374743   .0206276    26.06   0.000      .497045    .5779036
       1  4  |   .6437339   .0224557    28.67   0.000     .5997216    .6877463
       1  5  |   .6405318   .0251713    25.45   0.000     .5911971    .6898666
       1  6  |   .6464634   .0280974    23.01   0.000     .5913936    .7015333
       1  7  |   .6361579   .0310243    20.51   0.000     .5753515    .6969643
       1  8  |   .6461742   .0278868    23.17   0.000     .5915171    .7008314
       1  9  |    .644748    .028064    22.97   0.000     .5897435    .6997524
       1 10  |   .6492055   .0267455    24.27   0.000     .5967853    .7016256
------------------------------------------------------------------------------

. 
. 
. log close
      name:  <unnamed>
       log:  C:\Users\mbeissin\Desktop\Stata files for book\Logfiles\chapter9.log
  log type:  text
 closed on:  25 Jan 2022, 23:10:58
------------------------------------------------------------------------------------------------------------------
